<!DOCTYPE html>
<html class="client-nojs vector-feature-night-mode-disabled vector-feature-language-in-header-enabled vector-feature-language-in-main-page-header-disabled vector-feature-page-tools-pinned-disabled vector-feature-toc-pinned-clientpref-1 vector-feature-main-menu-pinned-disabled vector-feature-limited-width-clientpref-1 vector-feature-limited-width-content-enabled vector-feature-custom-font-size-clientpref-1 vector-feature-appearance-pinned-clientpref-1 vector-sticky-header-enabled" lang="en" dir="ltr"><head>
<meta charset="UTF-8">
<title>C (programming language)</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="canonical" href="https://en.wikipedia.org/wiki/C_(programming_language)"> <link href="./mw/ext.cite.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/ext.pygments.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.icons.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.search.codex.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/skins.vector.styles.css" rel="stylesheet" type="text/css">
<link href="./mw/user.styles.css" rel="stylesheet" type="text/css">
<meta name="ResourceLoaderDynamicStyles" content="">
<link rel="stylesheet" type="text/css" href="./mw/site.styles.css">
<link rel="stylesheet" type="text/css" href="./mw/noscript.css">
<link rel="stylesheet" type="text/css" href="./footer.css">
<link rel="stylesheet" type="text/css" href="./vector-2022.css">
</head>
<body class="skin--responsive skin-vector skin-vector-search-vue mediawiki ltr sitedir-ltr mw-hide-empty-elt ns-0 ns-subject page-C_programming_language rootpage-C_programming_language skin-vector-2022 action-view">
<div class="mw-page-container">
<div class="mw-page-container-inner">
<div class="mw-content-container">
<main id="content" class="mw-body">
<header class="mw-body-header vector-page-titlebar">
<h1 id="firstHeading" class="firstHeading mw-first-heading">
<span id="openzim-page-title" class="mw-page-title-main"><span class="mw-page-title-main">C (programming language)</span></span>
</h1>
</header>
<a id="top"></a>
<div id="bodyContent" class="vector-body ve-init-mw-desktopArticleTarget-targetContainer" aria-labelledby="firstHeading" data-mw-ve-target-container="">
<div id="mw-content-text" class="mw-body-content mw-content-ltr" lang="en" dir="ltr"><div class="mw-content-ltr mw-parser-output" lang="en" dir="ltr">
<style data-mw-deduplicate="TemplateStyles:r1236090951">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hatnote{font-style:italic}.mw-parser-output div.hatnote{padding-left:1.6em;margin-bottom:0.5em}.mw-parser-output .hatnote i{font-style:normal}.mw-parser-output .hatnote+link+.hatnote{margin-top:-0.5em}@media print{body.ns-0 .mw-parser-output .hatnote{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div role="note" class="hatnote navigation-not-searchable">"C programming language" redirects here. For the book, see <a href="The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a>.</div>
<div role="note" class="hatnote navigation-not-searchable">Not to be confused with <a href="C%2B%2B" title="C++">C++</a> or <a href="C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a>.</div>
<p class="mw-empty-elt">
</p>
<style data-mw-deduplicate="TemplateStyles:r1129693374">
/* start https://en.wikipedia.org/ */
.mw-parser-output .hlist dl,.mw-parser-output .hlist ol,.mw-parser-output .hlist ul{margin:0;padding:0}.mw-parser-output .hlist dd,.mw-parser-output .hlist dt,.mw-parser-output .hlist li{margin:0;display:inline}.mw-parser-output .hlist.inline,.mw-parser-output .hlist.inline dl,.mw-parser-output .hlist.inline ol,.mw-parser-output .hlist.inline ul,.mw-parser-output .hlist dl dl,.mw-parser-output .hlist dl ol,.mw-parser-output .hlist dl ul,.mw-parser-output .hlist ol dl,.mw-parser-output .hlist ol ol,.mw-parser-output .hlist ol ul,.mw-parser-output .hlist ul dl,.mw-parser-output .hlist ul ol,.mw-parser-output .hlist ul ul{display:inline}.mw-parser-output .hlist .mw-empty-li{display:none}.mw-parser-output .hlist dt::after{content:": "}.mw-parser-output .hlist dd::after,.mw-parser-output .hlist li::after{content:" · ";font-weight:bold}.mw-parser-output .hlist dd:last-child::after,.mw-parser-output .hlist dt:last-child::after,.mw-parser-output .hlist li:last-child::after{content:none}.mw-parser-output .hlist dd dd:first-child::before,.mw-parser-output .hlist dd dt:first-child::before,.mw-parser-output .hlist dd li:first-child::before,.mw-parser-output .hlist dt dd:first-child::before,.mw-parser-output .hlist dt dt:first-child::before,.mw-parser-output .hlist dt li:first-child::before,.mw-parser-output .hlist li dd:first-child::before,.mw-parser-output .hlist li dt:first-child::before,.mw-parser-output .hlist li li:first-child::before{content:" (";font-weight:normal}.mw-parser-output .hlist dd dd:last-child::after,.mw-parser-output .hlist dd dt:last-child::after,.mw-parser-output .hlist dd li:last-child::after,.mw-parser-output .hlist dt dd:last-child::after,.mw-parser-output .hlist dt dt:last-child::after,.mw-parser-output .hlist dt li:last-child::after,.mw-parser-output .hlist li dd:last-child::after,.mw-parser-output .hlist li dt:last-child::after,.mw-parser-output .hlist li li:last-child::after{content:")";font-weight:normal}.mw-parser-output .hlist ol{counter-reset:listitem}.mw-parser-output .hlist ol>li{counter-increment:listitem}.mw-parser-output .hlist ol>li::before{content:" "counter(listitem)"\a0 "}.mw-parser-output .hlist dd ol>li:first-child::before,.mw-parser-output .hlist dt ol>li:first-child::before,.mw-parser-output .hlist li ol>li:first-child::before{content:" ("counter(listitem)"\a0 "}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1295905060">
/* start https://en.wikipedia.org/ */
.mw-parser-output .infobox-subbox{padding:0;border:none;margin:-3px;width:auto;min-width:100%;font-size:100%;clear:none;float:none;background-color:transparent}.mw-parser-output .infobox-3cols-child{margin:auto}.mw-parser-output .infobox .navbar{font-size:100%}@media screen{html.skin-theme-clientpref-night .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .infobox-full-data:not(.notheme)>div:not(.notheme)[style]{background:#1f1f23!important;color:#f8f9fa}}@media(min-width:640px){body.skin--responsive .mw-parser-output .infobox-table{display:table!important}body.skin--responsive .mw-parser-output .infobox-table>caption{display:table-caption!important}body.skin--responsive .mw-parser-output .infobox-table>tbody{display:table-row-group}body.skin--responsive .mw-parser-output .infobox-table th,body.skin--responsive .mw-parser-output .infobox-table td{padding-left:inherit;padding-right:inherit}}
/* end https://en.wikipedia.org/ */
</style><table class="infobox vevent"><tbody><tr><th colspan="2" class="infobox-above" style="background-color:#e0e0e0;">C</th></tr><tr><td colspan="2" class="infobox-image"><span typeof="mw:File"></span><div class="infobox-caption">Logotype used on the cover of the first edition of <i><a href="The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a></i><sup id="cite_ref-C_in_a_Nutshell_1-0" class="reference"><a href="#cite_note-C_in_a_Nutshell-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup></div></td></tr><tr><th scope="row" class="infobox-label"><a href="Programming_paradigm" title="Programming paradigm">Paradigm</a></th><td class="infobox-data"><a href="Multi-paradigm" class="mw-redirect" title="Multi-paradigm">Multi-paradigm</a>: <a href="Imperative_programming" title="Imperative programming">imperative</a> (<a href="Procedural_programming" title="Procedural programming">procedural</a>), <a href="Structured_programming" title="Structured programming">structured</a></td></tr><tr><th scope="row" class="infobox-label"><a href="Software_design" title="Software design">Designed by</a></th><td class="infobox-data"><a href="Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a></td></tr><tr><th scope="row" class="infobox-label"><a href="Software_developer" class="mw-redirect" title="Software developer">Developer</a></th><td class="infobox-data organiser">ANSI X3J11 (<a href="ANSI_C" title="ANSI C">ANSI C</a>); <a href="ISO/IEC_JTC_1/SC_22" title="ISO/IEC JTC 1/SC 22">ISO/IEC JTC 1 (Joint Technical Committee 1) / SC 22 (Subcommittee 22)</a> / WG 14 (Working Group 14) (ISO C)</td></tr><tr><th scope="row" class="infobox-label">First appeared</th><td class="infobox-data">1972<span style="display:none"> (<span class="bday dtstart published updated">1972</span>)</span><sup id="cite_ref-5" class="reference"><a href="#cite_note-5"><span class="cite-bracket">[</span>a<span class="cite-bracket">]</span></a></sup></td></tr><tr><td colspan="2" class="infobox-full-data"></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_release_life_cycle" title="Software release life cycle">Stable release</a></th><td class="infobox-data"><div style="margin:0px;"><a href="C23_(C_standard_revision)" title="C23 (C standard revision)">C23</a>
/ October 31, 2024<span style="display:none"> (<span class="bday dtstart published updated">2024-10-31</span>)</span></div></td></tr><tr><th scope="row" class="infobox-label" style="white-space: nowrap;"><a href="Software_release_life_cycle#Beta" title="Software release life cycle">Preview release</a></th><td class="infobox-data"><div style="margin:0px;">C2y (N3220)
/ February 21, 2024<span style="display:none"> (<span class="bday dtstart published updated">2024-02-21</span>)</span><sup id="cite_ref-6" class="reference"><a href="#cite_note-6"><span class="cite-bracket">[</span>5<span class="cite-bracket">]</span></a></sup></div></td></tr><tr style="display:none"><td colspan="2">
</td></tr><tr><th scope="row" class="infobox-label"><a href="Type_system" title="Type system">Typing discipline</a></th><td class="infobox-data"><a href="Type_system" title="Type system">Static</a>, <a href="Strong_and_weak_typing" title="Strong and weak typing">weak</a>, <a href="Manifest_typing" title="Manifest typing">manifest</a>, <a href="Nominal_type_system" title="Nominal type system">nominal</a></td></tr><tr><th scope="row" class="infobox-label"><a href="Operating_system" title="Operating system">OS</a></th><td class="infobox-data"><a href="Cross-platform" class="mw-redirect" title="Cross-platform">Cross-platform</a></td></tr><tr><th scope="row" class="infobox-label"><a href="Filename_extension" title="Filename extension">Filename extensions</a></th><td class="infobox-data">.c, .h</td></tr><tr><th scope="row" class="infobox-label">Website</th><td class="infobox-data"><style data-mw-deduplicate="TemplateStyles:r1126788409">
/* start https://en.wikipedia.org/ */
.mw-parser-output .plainlist ol,.mw-parser-output .plainlist ul{line-height:inherit;list-style:none;margin:0;padding:0}.mw-parser-output .plainlist ol li,.mw-parser-output .plainlist ul li{margin-bottom:0}
/* end https://en.wikipedia.org/ */
</style><div class="plainlist"><ul><li><span class="url"><a rel="nofollow" class="external text" href="https://www.c-language.org/">c-language.org</a></span></li><li><span class="url"><a rel="nofollow" class="external text" href="https://www.iso.org/standard/82075.html">iso.org</a></span></li><li><span class="url"><a rel="nofollow" class="external text" href="http://www.open-std.org/jtc1/sc22/wg14/">open-std.org</a></span></li></ul></div></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #EEEEEE;">Major <a href="Programming_language_implementation" title="Programming language implementation">implementations</a></th></tr><tr><td colspan="2" class="infobox-full-data"><a href="Portable_C_Compiler" title="Portable C Compiler">pcc</a>, <a href="GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a>, <a href="Clang" title="Clang">Clang</a>, <span class="nowrap"><a href="Intel_C%2B%2B_Compiler" title="Intel C++ Compiler">Intel C</a></span>, <a href="C%2B%2BBuilder" title="C++Builder">C++Builder</a>, <span class="nowrap"><a href="Microsoft_Visual_C%2B%2B" title="Microsoft Visual C++">Microsoft Visual C++</a></span>, <span class="nowrap"><a href="Watcom_C/C%2B%2B" title="Watcom C/C++">Watcom C</a></span></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #EEEEEE;"><a href="Programming_language#Dialects,_flavors_and_implementations" title="Programming language">Dialects</a></th></tr><tr><td colspan="2" class="infobox-full-data"><a href="Cyclone_(programming_language)" title="Cyclone (programming language)">Cyclone</a>, <a href="Unified_Parallel_C" title="Unified Parallel C">Unified Parallel C</a>, <a href="Split-C" title="Split-C">Split-C</a>, <a href="Cilk" title="Cilk">Cilk</a>, <a href="C*" title="C*">C*</a></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #EEEEEE;">Influenced by</th></tr><tr><td colspan="2" class="infobox-full-data"><a href="B_(programming_language)" title="B (programming language)">B</a> (<a href="BCPL" title="BCPL">BCPL</a>, <a href="CPL_(programming_language)" title="CPL (programming language)">CPL</a>), <a href="ALGOL_68" title="ALGOL 68">ALGOL 68</a>,<sup id="cite_ref-9" class="reference"><a href="#cite_note-9"><span class="cite-bracket">[</span>b<span class="cite-bracket">]</span></a></sup> <a href="PL/I" title="PL/I">PL/I</a>, <a href="Fortran" title="Fortran">Fortran</a></td></tr><tr><th colspan="2" class="infobox-header" style="background-color: #EEEEEE;">Influenced</th></tr><tr><td colspan="2" class="infobox-full-data">Numerous: <a href="AMPL" title="AMPL">AMPL</a>, <a href="AWK" title="AWK">AWK</a>, <a href="C_shell" title="C shell">csh</a>, <a href="C%2B%2B" title="C++">C++</a>, <a href="C--" title="C--">C--</a>, <a href="C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a>, <a href="Objective-C" title="Objective-C">Objective-C</a>, <a href="D_(programming_language)" title="D (programming language)">D</a>, <a href="Go_(programming_language)" title="Go (programming language)">Go</a>, <a href="Java_(programming_language)" title="Java (programming language)">Java</a>, <a href="JavaScript" title="JavaScript">JavaScript</a>, <a href="JS%2B%2B" title="JS++">JS++</a>, <a href="Julia_(programming_language)" title="Julia (programming language)">Julia</a>, <a href="Limbo_(programming_language)" title="Limbo (programming language)">Limbo</a>, <a href="LPC_(programming_language)" class="mw-redirect" title="LPC (programming language)">LPC</a>, <a href="Perl" title="Perl">Perl</a>, <a href="PHP" title="PHP">PHP</a>, <a href="Pike_(programming_language)" title="Pike (programming language)">Pike</a>, <a href="Processing_(programming_language)" class="mw-redirect" title="Processing (programming language)">Processing</a>, <a href="Python_(programming_language)" title="Python (programming language)">Python</a>, <a href="Rust_(programming_language)" title="Rust (programming language)">Rust</a>, <a href="Seed7" title="Seed7">Seed7</a>, <a href="V_(programming_language)" title="V (programming language)">V (Vlang)</a>, <a href="Vala_(programming_language)" title="Vala (programming language)">Vala</a>, <a href="Verilog" title="Verilog">Verilog</a> (HDL),<sup id="cite_ref-vinsp_10-0" class="reference"><a href="#cite_note-vinsp-10"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup> <a href="Nim_(programming_language)" title="Nim (programming language)">Nim</a>, <a href="Zig_(programming_language)" title="Zig (programming language)">Zig</a></td></tr><tr><td colspan="2" class="infobox-below hlist" style="border-top: 1px solid #aaa; padding-top: 3px;">
<ul><li><span class="noviewer" typeof="mw:File"></span> <a href="https://en.wikibooks.org/wiki/C_Programming" class="extiw external" title="wikibooks:C Programming">C Programming</a> at Wikibooks</li></ul>
</td></tr></tbody></table>
<p><b>C</b><sup id="cite_ref-12" class="reference"><a href="#cite_note-12"><span class="cite-bracket">[</span>c<span class="cite-bracket">]</span></a></sup> is a <a href="General-purpose_programming_language" title="General-purpose programming language">general-purpose programming language</a>. It was created in the 1970s by <a href="Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a> and remains widely used and influential. By design, C gives the <a href="Programmer" title="Programmer">programmer</a> relatively direct access to the features of the typical <a href="Central_processing_unit" title="Central processing unit">CPU</a> architecture; customized for the target <a href="Instruction_set_architecture" title="Instruction set architecture">instruction set</a>. It has been and continues to be used to implement <a href="Operating_system" title="Operating system">operating systems</a> (especially <a href="Kernel_(operating_system)" title="Kernel (operating system)">kernels</a><sup id="cite_ref-13" class="reference"><a href="#cite_note-13"><span class="cite-bracket">[</span>10<span class="cite-bracket">]</span></a></sup>), <a href="Device_driver" title="Device driver">device drivers</a>, and <a href="Protocol_stack" title="Protocol stack">protocol stacks</a>, but its use in <a href="Application_software" title="Application software">application software</a> has been decreasing.<sup id="cite_ref-14" class="reference"><a href="#cite_note-14"><span class="cite-bracket">[</span>11<span class="cite-bracket">]</span></a></sup> C is used on computers that range from the largest <a href="Supercomputer" title="Supercomputer">supercomputers</a> to the smallest <a href="Microcontroller" title="Microcontroller">microcontrollers</a> and <a href="Embedded_system" title="Embedded system">embedded systems</a>.
</p><p>A successor to the programming language <a href="B_(programming_language)" title="B (programming language)">B</a>, C was originally developed at <a href="Bell_Labs" title="Bell Labs">Bell Labs</a> by Ritchie between 1972 and 1973 to construct utilities running on <a href="Unix" title="Unix">Unix</a>. It was applied to re-implementing the kernel of the Unix operating system.<sup id="cite_ref-FOOTNOTERitchie1993a_15-0" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a-15"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> During the 1980s, C gradually gained popularity. It has become one of the most widely used <a href="Programming_language" title="Programming language">programming languages</a>,<sup id="cite_ref-langpop_16-0" class="reference"><a href="#cite_note-langpop-16"><span class="cite-bracket">[</span>13<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-TIOBE-2009_17-0" class="reference"><a href="#cite_note-TIOBE-2009-17"><span class="cite-bracket">[</span>14<span class="cite-bracket">]</span></a></sup> with C <a href="Compiler" title="Compiler">compilers</a> available for practically all modern <a href="Computer_architecture" title="Computer architecture">computer architectures</a> and <a href="Operating_system" title="Operating system">operating systems</a>. The book <i><a href="The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a></i>, co-authored by the original language designer, served for many years as the <i>de facto</i> standard for the language.<sup id="cite_ref-ward198308_18-0" class="reference"><a href="#cite_note-ward198308-18"><span class="cite-bracket">[</span>15<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-C_in_a_Nutshell_1-1" class="reference"><a href="#cite_note-C_in_a_Nutshell-1"><span class="cite-bracket">[</span>1<span class="cite-bracket">]</span></a></sup> C has been standardized since 1989 by the <a href="American_National_Standards_Institute" title="American National Standards Institute">American National Standards Institute</a> (ANSI) and, subsequently, jointly by the <a href="International_Organization_for_Standardization" title="International Organization for Standardization">International Organization for Standardization</a> (ISO) and the <a href="International_Electrotechnical_Commission" title="International Electrotechnical Commission">International Electrotechnical Commission</a> (IEC).
</p><p>C is an <a href="Imperative_programming" title="Imperative programming">imperative</a> <a href="Procedural_programming" title="Procedural programming">procedural</a> language, supporting <a href="Structured_programming" title="Structured programming">structured programming</a>, <a href="Lexical_variable_scope" class="mw-redirect" title="Lexical variable scope">lexical variable scope</a>, and <a href="Recursion_(computer_science)" title="Recursion (computer science)">recursion</a>, with a <a href="Static_type_system" class="mw-redirect" title="Static type system">static type system</a>. It was designed to be <a href="Compiled" class="mw-redirect" title="Compiled">compiled</a> to provide <a href="Low-level_programming_language" title="Low-level programming language">low-level</a> access to <a href="Computer_memory" title="Computer memory">memory</a> and language constructs that map efficiently to <a href="Machine_instructions" class="mw-redirect" title="Machine instructions">machine instructions</a>, all with minimal <a href="Runtime_system" title="Runtime system">runtime support</a>. Despite its low-level capabilities, the language was designed to encourage cross-platform programming. A <a href="Specification_(technical_standard)" title="Specification (technical standard)">standards</a>-compliant C program written with <a href="Software_portability" title="Software portability">portability</a> in mind can be compiled for a wide variety of computer platforms and operating systems with few changes to its source code.
</p><p>Although neither C nor its standard library provide some popular features found in other languages, it is flexible enough to support them. For example, <a href="Object-oriented_programming" title="Object-oriented programming">object orientation</a> and <a href="Garbage_collection_(computer_science)" title="Garbage collection (computer science)">garbage collection</a> are provided by external libraries <a href="GLib_Object_System" class="mw-redirect" title="GLib Object System">GLib Object System</a> and <a href="Boehm_garbage_collector" title="Boehm garbage collector">Boehm garbage collector</a>, respectively.
</p><p>Since 2000, C has consistently ranked among the top four languages in the <a href="TIOBE_index" title="TIOBE index">TIOBE index</a>, a measure of the popularity of programming languages.<sup id="cite_ref-19" class="reference"><a href="#cite_note-19"><span class="cite-bracket">[</span>16<span class="cite-bracket">]</span></a></sup> Originally, C was popular mostly due to being easier to use than other programming languages. Currently, C is popular mostly due to speed, efficiency, low memory usage, and simplicity. C uses approximately 80 times less energy than Python, Perl, and PHP. <sup id="cite_ref-20" class="reference"><a href="#cite_note-20"><span class="cite-bracket">[</span>17<span class="cite-bracket">]</span></a></sup> On average, C uses less energy than <a href="Fortran" title="Fortran">Fortran</a>, despite Fortran being faster on average.
</p>
<meta property="mw:PageProp/toc">
<div class="mw-heading mw-heading2"><h2 id="Characteristics">Characteristics</h2></div>
<p>The C language exhibits the following characteristics:
</p>
<ul><li><a href="Free-form_language" title="Free-form language">Free-form</a> source code</li>
<li><a href="Semicolon" title="Semicolon">Semicolons</a> terminate <a href="Statement_(programming)" class="mw-redirect" title="Statement (programming)">statements</a></li>
<li><a href="Curly_braces" class="mw-redirect" title="Curly braces">Curly braces</a> group statements into <a href="Block_(programming)" title="Block (programming)">blocks</a></li>
<li><a href="Executable_code" class="mw-redirect" title="Executable code">Executable code</a> is contained in <a href="Function" class="mw-disambig" title="Function">functions</a>; no script-like syntax</li>
<li><a href="Function_parameter" class="mw-redirect" title="Function parameter">Parameters</a> are passed by value; pass by-reference is achieved by passing a pointer to a value</li>
<li>Relatively small number of keywords</li>
<li><a href="Control_flow" title="Control flow">Control flow</a> constructs, including <code><a href="Conditional_(computer_programming)" title="Conditional (computer programming)">if</a></code>, <code><a href="For_loop" title="For loop">for</a></code>, <code><a href="Do_while_loop" title="Do while loop">do</a></code>, <code><a href="While_loop" title="While loop">while</a></code>, and <code><a href="Switch_statement" title="Switch statement">switch</a></code></li>
<li><a href="Arithmetic" title="Arithmetic">Arithmetic</a>, <a href="Bitwise" class="mw-redirect" title="Bitwise">bitwise</a>, and logic operators, including <code>+</code>,<code>+=</code>,<code>++</code>,<code>&</code>,<code>||</code>, etc.</li>
<li>Multiple <a href="Assignment_(computer_science)" title="Assignment (computer science)">assignments</a> may be performed in a single statement</li>
<li>User-defined identifiers are not distinguished from keywords; i.e. by a <a href="Sigil_(computer_programming)" title="Sigil (computer programming)">sigil</a></li>
<li>A variable declared inside a block is accessible only in that block and only below the declaration</li>
<li>A function return value can be ignored</li>
<li>A function cannot be nested inside a function; but some translators support this</li>
<li>Function pointers support <a href="Run-time_polymorphism" class="mw-redirect" title="Run-time polymorphism">run-time polymorphism</a></li>
<li>Supports <a href="Recursion_(computer_science)" title="Recursion (computer science)">recursion</a>; a function may call itself</li>
<li>Data typing is <a href="Static_typing" class="mw-redirect" title="Static typing">static</a>, but <a href="Strong_and_weak_typing" title="Strong and weak typing">weakly enforced</a>; all variables have a type, but <a href="Implicit_conversion" class="mw-redirect" title="Implicit conversion">implicit conversion</a> between primitive types weakens the separation of the different types</li>
<li><a href="Typedef" title="Typedef">User-defined</a> data types allow for aliasing a data type specifier</li>
<li>Syntax for <a href="Array_(data_type)" title="Array (data type)">array</a> definition and access is via square bracket notation, for example <code>month[11]</code>. Indexing is defined in terms of pointer arithmetic. Whole arrays cannot be copied or compared without custom or library code</li>
<li>User-defined <a href="Struct_(C_programming_language)" title="Struct (C programming language)">structure</a> types allow related data elements to be passed and copied as a unit although two structures cannot be compared without custom code to compare each field</li>
<li>User-defined <a href="Union_type" title="Union type">union</a> types support overlapping members; allowing multiple data types to share the same <a href="Memory_location" class="mw-redirect" title="Memory location">memory location</a></li>
<li>User-defined <a href="Enumerated_type" title="Enumerated type">enumeration</a> types support aliasing integer values</li>
<li>Lacks a <a href="String_(computer_science)" title="String (computer science)">string type</a> but has syntax for <a href="Null-terminated_string" title="Null-terminated string">null-terminated strings</a> with associated <a href="C_string_handling" title="C string handling">handling</a> in its standard library</li>
<li>Supports low-level access to <a href="Computer_memory" title="Computer memory">computer memory</a> via <a href="Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a></li>
<li>Supports <a href="Procedure_(computer_science)" class="mw-redirect" title="Procedure (computer science)">procedure-like</a> construct as a function returning <code>void</code></li>
<li>Supports <a href="Dynamic_allocation" class="mw-redirect" title="Dynamic allocation">dynamic memory</a> via standard library functions</li>
<li>Includes the <a href="C_preprocessor" title="C preprocessor">C preprocessor</a> to perform <a href="Macro_(computer_science)" title="Macro (computer science)">macro</a> definition, <a href="Source_code" title="Source code">source code</a> file inclusion, and <a href="Conditional_compilation" title="Conditional compilation">conditional compilation</a></li>
<li>Supports <a href="Modular_programming" title="Modular programming">modularity</a> in that files are processed separately, with visibility control via <code>static</code> and <code>extern</code> attributes</li>
<li>Minimized functionality in the core language while relatively complex functionality such as <a href="Input/output" title="Input/output">I/O</a>, string manipulation, and mathematical functions supported via standard library functions</li>
<li>Resulting compiled code has relatively straightforward needs on the underlying platform; making it desirable for operating and <a href="Embedded_system" title="Embedded system">embedded</a> systems</li></ul>
<div class="mw-heading mw-heading2"><h2 id=""Hello,_world"_example">"Hello, world" example</h2></div>
<p>The <a href="%22Hello%2C_World!%22_program" title=""Hello, World!" program">"Hello, World!" program</a> example that appeared in the first edition of <i><a href="The_C_Programming_Language" title="The C Programming Language">K&R</a></i> has become the model for an introductory program in most programming textbooks. The program prints "hello, world" to the <a href="Standard_output" class="mw-redirect" title="Standard output">standard output</a>.
</p><p>The original version was:<sup id="cite_ref-FOOTNOTEKernighanRitchie19786_21-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie19786-21"><span class="cite-bracket">[</span>18<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span class="n">main</span><span class="p">()</span>
<span class="p">{</span>
<span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"hello, world</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>A more modern version is:<sup id="cite_ref-22" class="reference"><a href="#cite_note-22"><span class="cite-bracket">[</span>d<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span class="cp">#include</span><span class="w"> </span><span class="cpf"><stdio.h></span>
<span class="kt">int</span><span class="w"> </span><span class="nf">main</span><span class="p">(</span><span class="kt">void</span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="n">printf</span><span class="p">(</span><span class="s">"hello, world</span><span class="se">\n</span><span class="s">"</span><span class="p">);</span>
<span class="p">}</span>
</pre></div>
<p>The first line is a <a href="C_preprocessor" title="C preprocessor">preprocessor</a> <a href="Directive_(programming)" title="Directive (programming)">directive</a>, indicated by <code>#include</code>, which causes the preprocessor to replace that line of code with the text of the <code><a href="Stdio.h" class="mw-redirect" title="Stdio.h">stdio.h</a></code> header file, which contains declarations for input and output functions including <code>printf</code>. The angle brackets around <code>stdio.h</code> indicate that the header file can be located using a search strategy that selects header files provided with the compiler over files with the same name that may be found in project-specific directories.
</p><p>The next code line declares the <a href="Entry_point" title="Entry point">entry point</a> function <code>main()</code>. The <a href="Run-time_environment" class="mw-redirect" title="Run-time environment">run-time environment</a> calls this function to begin program execution. The type specifier <code>int</code> indicates that the function returns an integer value. The <code>void</code> parameter list indicates that the function consumes no arguments. The run-time environment actually passes two arguments (typed <code>int</code> and <code>char *[]</code>), but this implementation ignores them. The ISO C standard (section 5.1.2.2.1) requires syntax that either is void or these two arguments – a special treatment not afforded to other functions.
</p><p>The opening curly brace indicates the beginning of the code that defines the function.
</p><p>The next line of code calls (diverts execution to) the C standard library function <code><a href="Printf" title="Printf">printf</a></code> with the <a href="Memory_address" title="Memory address">address</a> of the first character of a null-terminated string specified as a <a href="String_literal" title="String literal">string literal</a>. The text <code>\n</code> is an <a href="Escape_sequence" title="Escape sequence">escape sequence</a> that denotes the <a href="Newline" title="Newline">newline</a> character which when output in a terminal results in moving the cursor to the beginning of the next line. Even though <code>printf</code> returns an <code>int</code> value, it is silently discarded. The semicolon <code>;</code> terminates the call statement.
</p><p>The closing curly brace indicates the end of the <code>main</code> function. Prior to C99, an explicit <code>return 0;</code> statement was required at the end of <code>main</code> function, but since C99, the <code>main</code> function (as being the initial function call) implicitly returns <code>0</code> upon reaching its final closing curly brace.<sup id="cite_ref-24" class="reference"><a href="#cite_note-24"><span class="cite-bracket">[</span>e<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="History">History</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Early_developments">Early developments</h3></div>
<table class="wikitable floatright" style="margin-left: 1.5em;">
<caption>Timeline of C language
</caption>
<tbody><tr>
<th>Year
</th>
<th>Informal<br>name
</th>
<th>Official<br>standard
</th></tr>
<tr>
<td>1972
</td>
<td>first release
</td>
<td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">—
</td></tr>
<tr>
<td>1978
</td>
<td><a href="K%26R_C" class="mw-redirect" title="K&R C">K&R C</a>
</td>
<td data-sort-value="" style="background: var(--background-color-interactive, #ececec); color: var(--color-base, inherit); vertical-align: middle; text-align: center;" class="table-na">—
</td></tr>
<tr>
<td>1989,<br>1990
</td>
<td><a href="ANSI_C" title="ANSI C">ANSI C</a>, C89,<br>ISO C, C90
</td>
<td>ANSI X3.159-1989<br>ISO/IEC 9899:1990
</td></tr>
<tr>
<td>1999
</td>
<td><a href="C99" title="C99">C99</a>, C9X
</td>
<td>ISO/IEC 9899:1999
</td></tr>
<tr>
<td>2011
</td>
<td><a href="C11_(C_standard_revision)" title="C11 (C standard revision)">C11</a>, C1X
</td>
<td>ISO/IEC 9899:2011
</td></tr>
<tr>
<td>2018
</td>
<td><a href="C17_(C_standard_revision)" title="C17 (C standard revision)">C17</a>, C18
</td>
<td>ISO/IEC 9899:2018
</td></tr>
<tr>
<td>2024
</td>
<td><a href="C23_(C_standard_revision)" title="C23 (C standard revision)">C23</a>, C2X
</td>
<td>ISO/IEC 9899:2024
</td></tr>
<tr>
<td data-sort-value="" style="background: #DDF; color:black; vertical-align: middle; text-align: center;" class="skin-invert no table-no2"><abbr title="To be announced">TBA</abbr>
</td>
<td><a href="#C2Y">C2Y</a>
</td>
<td>
</td></tr></tbody></table>
<p>The origin of C is closely tied to the development of the <a href="Unix" title="Unix">Unix</a> operating system, originally implemented in <a href="Assembly_language" title="Assembly language">assembly language</a> on a <a href="PDP-7" title="PDP-7">PDP-7</a> by <a href="Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a> and <a href="Ken_Thompson" title="Ken Thompson">Ken Thompson</a>, incorporating several ideas from colleagues. Eventually, they decided to port the operating system to a <a href="PDP-11" title="PDP-11">PDP-11</a>. The original PDP-11 version of Unix was also developed in assembly language.<sup id="cite_ref-FOOTNOTERitchie1993a_15-1" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a-15"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="B">B</h4></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="B_(programming_language)" title="B (programming language)">B (programming language)</a></div>
<p>Thompson wanted a programming language for developing utilities for the new platform. He first tried writing a <a href="Fortran" title="Fortran">Fortran</a> compiler, but he soon gave up the idea and instead created a cut-down version of the recently developed <a href="Systems_programming_language" class="mw-redirect" title="Systems programming language">systems programming language</a> called <a href="BCPL" title="BCPL">BCPL</a>. The official description of BCPL was not available at the time,<sup id="cite_ref-NFDsZ_25-0" class="reference"><a href="#cite_note-NFDsZ-25"><span class="cite-bracket">[</span>20<span class="cite-bracket">]</span></a></sup> and Thompson modified the syntax to be less 'wordy' and similar to a simplified <a href="ALGOL" title="ALGOL">ALGOL</a> known as SMALGOL.<sup id="cite_ref-Ars_26-0" class="reference"><a href="#cite_note-Ars-26"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> He called the result <a href="B_(programming_language)" title="B (programming language)"><i>B</i></a>,<sup id="cite_ref-FOOTNOTERitchie1993a_15-2" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a-15"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> describing it as "BCPL semantics with a lot of SMALGOL syntax".<sup id="cite_ref-Ars_26-1" class="reference"><a href="#cite_note-Ars-26"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> Like BCPL, B had a <a href="Bootstrapping" title="Bootstrapping">bootstrapping</a> compiler to facilitate porting to new machines.<sup id="cite_ref-Ars_26-2" class="reference"><a href="#cite_note-Ars-26"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> Ultimately, few utilities were written in B because it was too slow and could not take advantage of PDP-11 features such as <a href="Byte" title="Byte">byte</a> addressability.
</p><p>Unlike BCPL's <code>// comment</code> marking comments up to the end of the line, B adopted <code>/* comment */</code> as the comment delimiter, more akin to PL/1, and allowing comments to appear in the middle of lines. (BCPL's comment style would be reintroduced in C++.)<sup id="cite_ref-FOOTNOTERitchie1993a_15-3" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a-15"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="New_B_and_first_C_release">New B and first C release</h4></div>
<p>In 1971 Ritchie started to improve B, to use the features of the more-powerful PDP-11. A significant addition was a character data type. He called this <i>New B</i> (NB).<sup id="cite_ref-Ars_26-3" class="reference"><a href="#cite_note-Ars-26"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup> Thompson started to use NB to write the <a href="Research_Unix" title="Research Unix">Unix</a> kernel, and his requirements shaped the direction of the language development.<sup id="cite_ref-Ars_26-4" class="reference"><a href="#cite_note-Ars-26"><span class="cite-bracket">[</span>21<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-unixport_27-0" class="reference"><a href="#cite_note-unixport-27"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup>
</p><p>Through to 1972, richer types were added to the NB language. NB had arrays of <code>int</code> and <code>char</code>, and to these types were added pointers, the ability to generate pointers to other types, arrays of all types, and types to be returned from functions. Arrays within expressions were effectively treated as pointers. A new compiler was written, and the language was renamed C.<sup id="cite_ref-FOOTNOTERitchie1993a_15-4" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a-15"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup>
</p><p>The C compiler and some utilities made with it were included in <a href="Version_2_Unix" class="mw-redirect" title="Version 2 Unix">Version 2 Unix</a>, which is also known as <a href="Research_Unix" title="Research Unix">Research Unix</a>.<sup id="cite_ref-QtqTh_28-0" class="reference"><a href="#cite_note-QtqTh-28"><span class="cite-bracket">[</span>23<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="Structures_and_Unix_kernel_re-write">Structures and Unix kernel re-write</h4></div>
<p>At <a href="Version_4_Unix" class="mw-redirect" title="Version 4 Unix">Version 4 Unix</a>, released in November 1973, the <a href="Unix" title="Unix">Unix</a> <a href="Kernel_(operating_system)" title="Kernel (operating system)">kernel</a> was extensively re-implemented in C.<sup id="cite_ref-FOOTNOTERitchie1993a_15-5" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a-15"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup> By this time, the C language had acquired some powerful features such as <code>struct</code> types.
</p><p>The <a href="C_preprocessor" title="C preprocessor">preprocessor</a> was introduced around 1973 at the urging of Alan Snyder and also in recognition of the usefulness of the file-inclusion mechanisms available in BCPL and <a href="PL/I" title="PL/I">PL/I</a>. Its original version provided only included files and simple string replacements: <code>#include</code> and <code>#define</code> of parameterless macros. Soon after that, it was extended, mostly by <a href="Mike_Lesk" title="Mike Lesk">Mike Lesk</a> and then by John Reiser, to incorporate macros with arguments and <a href="Conditional_compilation" title="Conditional compilation">conditional compilation</a>.<sup id="cite_ref-FOOTNOTERitchie1993a_15-6" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a-15"><span class="cite-bracket">[</span>12<span class="cite-bracket">]</span></a></sup>
</p><p>Unix was one of the first operating system kernels implemented in a language other than <a href="Assembly_language" title="Assembly language">assembly</a>. Earlier instances include the <a href="Multics" title="Multics">Multics</a> system (which was written in <a href="PL/I" title="PL/I">PL/I</a>) and <a href="Master_Control_Program" class="mw-redirect" title="Master Control Program">Master Control Program</a> (MCP) for the <a href="Burroughs_large_systems" class="mw-redirect" title="Burroughs large systems">Burroughs B5000</a> (which was written in <a href="ALGOL" title="ALGOL">ALGOL</a>) in 1961. In around 1977, Ritchie and <a href="Stephen_C._Johnson" title="Stephen C. Johnson">Stephen C. Johnson</a> made further changes to the language to facilitate <a href="Software_portability" title="Software portability">portability</a> of the Unix operating system. Johnson's <a href="Portable_C_Compiler" title="Portable C Compiler">Portable C Compiler</a> served as the basis for several implementations of C on new platforms.<sup id="cite_ref-unixport_27-1" class="reference"><a href="#cite_note-unixport-27"><span class="cite-bracket">[</span>22<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="K&R_C">K&R C</h3></div>
<p>In 1978 <a href="Brian_Kernighan" title="Brian Kernighan">Brian Kernighan</a> and <a href="Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a> published the first edition of <i><a href="The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a></i>.<sup id="cite_ref-FOOTNOTEKernighanRitchie1978_29-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie1978-29"><span class="cite-bracket">[</span>24<span class="cite-bracket">]</span></a></sup> Known as <i>K&R</i> from the initials of its authors, the book served for many years as an informal <a href="Specification_(technical_standard)" title="Specification (technical standard)">specification</a> of the language. The version of C that it describes is commonly referred to as "<b>K&R C</b>". As this was released in 1978, it is now also referred to as <i>C78</i>.<sup id="cite_ref-qOvzA_30-0" class="reference"><a href="#cite_note-qOvzA-30"><span class="cite-bracket">[</span>25<span class="cite-bracket">]</span></a></sup> The second edition of the book<sup id="cite_ref-FOOTNOTEKernighanRitchie1988_31-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie1988-31"><span class="cite-bracket">[</span>26<span class="cite-bracket">]</span></a></sup> covers the later <a href="ANSI_C" title="ANSI C">ANSI C</a> standard, described below.
</p><p><i>K&R</i> introduced several language features:
</p>
<ul><li><a href="C_file_input/output" title="C file input/output">Standard I/O library</a></li>
<li><code><a href="Long_int" class="mw-redirect" title="Long int">long int</a></code> data type</li>
<li><code>unsigned int</code> data type</li>
<li>Compound assignment operators of the form <code>=<i>op</i></code> (such as <code>=-</code>) were changed to the form <code><i>op</i>=</code> (that is, <code>-=</code>) to remove the semantic ambiguity created by constructs such as <code>i=-10</code>, which had been interpreted as <code>i =- 10</code> (decrement <code>i</code> by 10) instead of the possibly intended <code>i = -10</code> (let <code>i</code> be −10).</li></ul>
<p>Even after the publication of the 1989 ANSI standard, for many years K&R C was still considered the "<a href="Lowest_common_denominator_(computers)" class="mw-redirect" title="Lowest common denominator (computers)">lowest common denominator</a>" to which C programmers restricted themselves when maximum portability was desired, since many older compilers were still in use, and because carefully written K&R C code can be legal Standard C as well.
</p><p>Although later versions of C require functions to have an explicit type declaration, K&R C only requires functions that return a type other than <code>int</code> to be declared before use. Functions used without prior declaration were presumed to return <code>int</code>.
</p><p>For example:
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr mw-highlight-lines" dir="ltr"><pre><span class="kt">long</span><span class="w"> </span><span class="nf">long_function</span><span class="p">();</span>
<span class="n">calling_function</span><span class="p">()</span>
<span class="p">{</span>
<span class="w"> </span><span class="kt">long</span><span class="w"> </span><span class="n">longvar</span><span class="p">;</span>
<span class="w"> </span><span class="k">register</span><span class="w"> </span><span class="n">intvar</span><span class="p">;</span>
<span class="w"> </span><span class="n">longvar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">long_function</span><span class="p">();</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">longvar</span><span class="w"> </span><span class="o">></span><span class="w"> </span><span class="mi">1</span><span class="p">)</span>
<span class="w"> </span><span class="n">intvar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span>
<span class="w"> </span><span class="k">else</span>
<span class="w"> </span><span class="n">intvar</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">int_function</span><span class="p">();</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="n">intvar</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>The declaration of <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">long_function()</code> (on line 1) is required since it returns <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">long</code>; not <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">int</code>. Function <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">int_function</code> can be called (line 11) even though it is not declared since it returns <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">int</code>. Also, variable <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">intvar</code> does not need to be declared as type <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">int</code> since that is the default type for <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">register</code> keyword.
</p><p>Since function declarations did not include information about arguments, <a href="Type_checking" class="mw-redirect" title="Type checking">type checks</a> were not performed, although some compilers would issue a warning if different calls to a function used different numbers or types of arguments. Tools such as Unix's <a href="Lint_programming_tool" class="mw-redirect" title="Lint programming tool">lint</a> utility were developed that (among other things) checked for consistency of function use across multiple source files.
</p><p>In the years following the publication of K&R C, several features were added to the language, supported by compilers from AT&T (in particular <a href="Portable_C_Compiler" title="Portable C Compiler">PCC</a><sup id="cite_ref-SkKfZ_32-0" class="reference"><a href="#cite_note-SkKfZ-32"><span class="cite-bracket">[</span>27<span class="cite-bracket">]</span></a></sup>) and other vendors. These included:
</p>
<ul><li><code><a href="Void_type" title="Void type">void</a></code> functions; functions returning no value</li>
<li>Functions returning <code><a href="Struct_(C_programming_language)" title="Struct (C programming language)">struct</a></code> or <code><a href="Union_(computer_science)" class="mw-redirect" title="Union (computer science)">union</a></code> types</li>
<li><a href="Assignment_(computer_science)" title="Assignment (computer science)">Assignment</a> for <code>struct</code> variables</li>
<li><a href="Enumerated_type" title="Enumerated type">Enumerated types</a></li></ul>
<p>The popularity of the language, lack of agreement on <a href="C_standard_library" title="C standard library">standard library</a> interfaces, and lack of compliance to the K&R specification, lead to standardization efforts.<sup id="cite_ref-33" class="reference"><a href="#cite_note-33"><span class="cite-bracket">[</span>28<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="ANSI_C_and_ISO_C">ANSI C and ISO C</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="ANSI_C" title="ANSI C">ANSI C</a></div>
<p>During the late 1970s and 1980s, versions of C were implemented for a wide variety of <a href="Mainframe_computer" title="Mainframe computer">mainframe computers</a>, <a href="Minicomputer" title="Minicomputer">minicomputers</a>, and <a href="Microcomputer" title="Microcomputer">microcomputers</a>, including the <a href="IBM_PC" class="mw-redirect" title="IBM PC">IBM PC</a>, as its popularity began to increase significantly.
</p><p>In 1983 the <a href="American_National_Standards_Institute" title="American National Standards Institute">American National Standards Institute</a> (ANSI) formed a committee, X3J11, to establish a standard specification of C. X3J11 based the C standard on the Unix implementation; however, the non-portable portion of the Unix C library was handed off to the <a href="IEEE" class="mw-redirect" title="IEEE">IEEE</a> <a href="Working_group" title="Working group">working group</a> 1003 to become the basis for the 1988 <a href="POSIX" title="POSIX">POSIX</a> standard. In 1989, the C standard was ratified as ANSI X3.159-1989 "Programming Language C". This version of the language is often referred to as <a href="ANSI_C" title="ANSI C">ANSI C</a>, Standard C, or sometimes <b>C89</b>.
</p><p>In 1990 the ANSI C standard (with formatting changes) was adopted by the <a href="International_Organization_for_Standardization" title="International Organization for Standardization">International Organization for Standardization</a> (ISO) as ISO/IEC 9899:1990, which is sometimes called <b>C90</b>. Therefore, the terms "C89" and "C90" refer to the same programming language.
</p><p>ANSI, like other national standards bodies, no longer develops the C standard independently, but defers to the international C standard, maintained by the working group <a href="ISO/IEC_JTC1/SC22" class="mw-redirect" title="ISO/IEC JTC1/SC22">ISO/IEC JTC1/SC22</a>/WG14. National adoption of an update to the international standard typically occurs within a year of ISO publication.
</p><p>One of the aims of the C standardization process was to produce a <a href="Superset" class="mw-redirect" title="Superset">superset</a> of K&R C, incorporating many of the subsequently introduced unofficial features. The standards committee also included several additional features such as <a href="Function_prototype" title="Function prototype">function prototypes</a> (borrowed from C++), <code>void</code> pointers, support for international <a href="Character_sets" class="mw-redirect" title="Character sets">character sets</a> and <a href="Locale_(computer_software)" title="Locale (computer software)">locales</a>, and preprocessor enhancements. Although the <a href="C_syntax" title="C syntax">syntax</a> for parameter declarations was augmented to include the style used in C++, the K&R interface continued to be permitted, for compatibility with existing source code.
</p><p>C89 is supported by current C compilers, and most modern C code is based on it. Any program written only in Standard C and without any hardware-dependent assumptions will run correctly on any <a href="Computing_platform" title="Computing platform">platform</a> with a conforming C implementation, within its resource limits. Without such precautions, programs may compile only on a certain platform or with a particular compiler, due, for example, to the use of non-standard libraries, such as <a href="GUI" class="mw-redirect" title="GUI">GUI</a> libraries, or to a reliance on compiler- or platform-specific attributes such as the exact size of data types and byte <a href="Endianness" title="Endianness">endianness</a>.
</p><p>In cases where code must be compilable by either standard-conforming or K&R C-based compilers, the <code>__STDC__</code> macro can be used to split the code into Standard and K&R sections to prevent the use on a K&R C-based compiler of features available only in Standard C.
</p><p>After the ANSI/ISO standardization process, the C language specification remained relatively static for several years. In 1995, Normative Amendment 1 to the 1990 C standard (ISO/IEC 9899/AMD1:1995, known informally as C95) was published, to correct some details and to add more extensive support for international character sets.<sup id="cite_ref-NWUon_34-0" class="reference"><a href="#cite_note-NWUon-34"><span class="cite-bracket">[</span>29<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="C99">C99</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="C99" title="C99">C99</a></div>
<p>The C standard was further revised in the late 1990s, leading to the publication of ISO/IEC 9899:1999 in 1999, which is commonly referred to as "<a href="C99" title="C99">C99</a>". It has since been amended three times by Technical Corrigenda.<sup id="cite_ref-WG14_35-0" class="reference"><a href="#cite_note-WG14-35"><span class="cite-bracket">[</span>30<span class="cite-bracket">]</span></a></sup>
</p><p>C99 introduced several new features, including <a href="Inline_function" class="mw-redirect" title="Inline function">inline functions</a>, several new <a href="Data_type" title="Data type">data types</a> (including <code>long long int</code> and a <code>complex</code> type to represent <a href="Complex_number" title="Complex number">complex numbers</a>), <a href="Variable-length_array" title="Variable-length array">variable-length arrays</a> and <a href="Flexible_array_member" title="Flexible array member">flexible array members</a>, improved support for <a href="IEEE_754" title="IEEE 754">IEEE 754</a> floating point, support for <a href="Variadic_macro" class="mw-redirect" title="Variadic macro">variadic macros</a> (macros of variable <a href="Arity" title="Arity">arity</a>), and support for one-line comments beginning with <code>//</code>, as in BCPL or C++. Many of these had already been implemented as extensions in several C compilers.
</p><p>C99 is for the most part backward compatible with C90, but is stricter in some ways; in particular, a declaration that lacks a type specifier no longer has <code>int</code> implicitly assumed. A standard macro <code>__STDC_VERSION__</code> is defined with value <code>199901L</code> to indicate that C99 support is available. <a href="GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a>, <a href="Solaris_Studio" class="mw-redirect" title="Solaris Studio">Solaris Studio</a>, and other C compilers now support many or all of the new features of C99. The C compiler in <a href="Microsoft_Visual_C%2B%2B" title="Microsoft Visual C++">Microsoft Visual C++</a>, however, implements the C89 standard and those parts of C99 that are required for compatibility with <a href="C%2B%2B11" title="C++11">C++11</a>.<sup id="cite_ref-YTKIv_36-0" class="reference"><a href="#cite_note-YTKIv-36"><span class="cite-bracket">[</span>31<span class="cite-bracket">]</span></a></sup>
</p><p>In addition, the C99 standard requires support for <a href="Identifier_(computer_languages)" title="Identifier (computer languages)">identifiers</a> using <a href="Unicode" title="Unicode">Unicode</a> in the form of escaped characters (e.g. <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\u0040</code> or <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">\U0001f431</code>) and suggests support for raw Unicode names.
</p>
<div class="mw-heading mw-heading3"><h3 id="C11">C11</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="C11_(C_standard_revision)" title="C11 (C standard revision)">C11 (C standard revision)</a></div>
<p>Work began in 2007 on another revision of the C standard, informally called "C1X" until its official publication of ISO/IEC 9899:2011 on December 8, 2011. The C standards committee adopted guidelines to limit the adoption of new features that had not been tested by existing implementations.
</p><p>The C11 standard adds numerous new features to C and the library, including type generic macros, anonymous structures, improved Unicode support, atomic operations, multi-threading, and bounds-checked functions. It also makes some portions of the existing C99 library optional, and improves compatibility with C++. The standard macro <code>__STDC_VERSION__</code> is defined as <code>201112L</code> to indicate that C11 support is available.
</p>
<div class="mw-heading mw-heading3"><h3 id="C17">C17</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="C17_(C_standard_revision)" title="C17 (C standard revision)">C17 (C standard revision)</a></div>
<p>C17 is an informal name for ISO/IEC 9899:2018, a standard for the C programming language published in June 2018. It introduces no new language features, only technical corrections, and clarifications to defects in C11. The standard macro <code>__STDC_VERSION__</code> is defined as <code>201710L</code> to indicate that C17 support is available.
</p>
<div class="mw-heading mw-heading3"><h3 id="C23">C23</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="C23_(C_standard_revision)" title="C23 (C standard revision)">C23 (C standard revision)</a></div>
<p>C23 is an informal name for the current major C language standard revision and was known as "C2X" through most of its development. It builds on past releases, introducing features like new keywords, types including <code>nullptr_t</code> and <code>_BitInt(N)</code>, and expansions to the standard library.<sup id="cite_ref-37" class="reference"><a href="#cite_note-37"><span class="cite-bracket">[</span>32<span class="cite-bracket">]</span></a></sup>
</p><p>C23 was published in October 2024 as ISO/IEC 9899:2024.<sup id="cite_ref-N3132_38-0" class="reference"><a href="#cite_note-N3132-38"><span class="cite-bracket">[</span>33<span class="cite-bracket">]</span></a></sup> The standard macro <code>__STDC_VERSION__</code> is defined as <code>202311L</code> to indicate that C23 support is available.
</p>
<div class="mw-heading mw-heading3"><h3 id="C2Y">C2Y</h3></div>
<p>C2Y is an informal name for the next major C language standard revision, after C23 (C2X), that is hoped to be released later in the 2020s, hence the '2' in "C2Y". An early working draft of C2Y was released in February 2024 as N3220 by the working group <a href="ISO/IEC_JTC1/SC22" class="mw-redirect" title="ISO/IEC JTC1/SC22">ISO/IEC JTC1/SC22</a>/WG14.<sup id="cite_ref-N3220_39-0" class="reference"><a href="#cite_note-N3220-39"><span class="cite-bracket">[</span>34<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Embedded_C">Embedded C</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Embedded_C" title="Embedded C">Embedded C</a></div>
<p>Historically, embedded C programming requires non-standard extensions to the C language to support exotic features such as <a href="Fixed-point_arithmetic" title="Fixed-point arithmetic">fixed-point arithmetic</a>, multiple distinct <a href="Memory_bank" title="Memory bank">memory banks</a>, and basic I/O operations.
</p><p>In 2008, the C Standards Committee published a <a href="Technical_report" title="Technical report">technical report</a> extending the C language<sup id="cite_ref-TR18037_40-0" class="reference"><a href="#cite_note-TR18037-40"><span class="cite-bracket">[</span>35<span class="cite-bracket">]</span></a></sup> to address these issues by providing a common standard for all implementations to adhere to. It includes a number of features not available in normal C, such as fixed-point arithmetic, named address spaces, and basic I/O hardware addressing.
</p>
<div class="mw-heading mw-heading2"><h2 id="Definition">Definition</h2></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="C_syntax" title="C syntax">C syntax</a></div>
<p>C has a <a href="Formal_grammar" title="Formal grammar">formal grammar</a> specified by the C standard.<sup id="cite_ref-h&s5e_41-0" class="reference"><a href="#cite_note-h&s5e-41"><span class="cite-bracket">[</span>36<span class="cite-bracket">]</span></a></sup> Line endings are generally not significant in C; however, line boundaries do have significance during the preprocessing phase. Comments may appear either between the delimiters <code>/*</code> and <code>*/</code>, or (since C99) following <code>//</code> until the end of the line. Comments delimited by <code>/*</code> and <code>*/</code> do not nest, and these sequences of characters are not interpreted as comment delimiters if they appear inside <a href="String_literal" title="String literal">string</a> or character literals.<sup id="cite_ref-FOOTNOTEKernighanRitchie1988192_42-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie1988192-42"><span class="cite-bracket">[</span>37<span class="cite-bracket">]</span></a></sup>
</p><p>C source files contain declarations and function definitions. Function definitions, in turn, contain declarations and <a href="Statement_(computer_science)" title="Statement (computer science)">statements</a>. Declarations either define new types using keywords such as <code>struct</code>, <code>union</code>, and <code>enum</code>, or assign types to and perhaps reserve storage for new variables, usually by writing the type followed by the variable name. Keywords such as <code>char</code> and <code>int</code> specify built-in types. Sections of code are enclosed in braces (<code>{</code> and <code>}</code>, sometimes called "curly brackets") to limit the scope of declarations and to act as a single statement for control structures.
</p><p>As an imperative language, C uses <i>statements</i> to specify actions. The most common statement is an <i>expression statement</i>, consisting of an expression to be evaluated, followed by a semicolon; as a <a href="Side_effect_(computer_science)" title="Side effect (computer science)">side effect</a> of the evaluation, <a href="Function_(computer_programming)" title="Function (computer programming)">functions may be called</a> and <a href="Assignment_(computer_science)" title="Assignment (computer science)">variables assigned</a> new values. To modify the normal sequential execution of statements, C provides several control-flow statements identified by reserved keywords. <a href="Structured_programming" title="Structured programming">Structured programming</a> is supported by <code>if</code> ... [<code>else</code>] conditional execution and by <code>do</code> ... <code>while</code>, <code>while</code>, and <code>for</code> iterative execution (looping). The <code>for</code> statement has separate initialization, testing, and reinitialization expressions, any or all of which can be omitted. <code>break</code> and <code>continue</code> can be used within the loop. Break is used to leave the innermost enclosing loop statement and continue is used to skip to its reinitialisation. There is also a non-structured <code><a href="Goto" title="Goto">goto</a></code> statement which branches directly to the designated <a href="Label_(computer_science)" title="Label (computer science)">label</a> within the function. <code><a href="Switch_statement" title="Switch statement">switch</a></code> selects a <code>case</code> to be executed based on the value of an integer expression. Different from many other languages, control-flow will <a href="Switch_statement#Fallthrough" title="Switch statement">fall through</a> to the next <code>case</code> unless terminated by a <code>break</code>.
</p><p>Expressions can use a variety of built-in operators and may contain function calls. The order in which arguments to functions and operands to most operators are evaluated is unspecified. The evaluations may even be interleaved. However, all side effects (including storage to variables) will occur before the next "<a href="Sequence_point" title="Sequence point">sequence point</a>"; sequence points include the end of each expression statement, and the entry to and return from each function call. Sequence points also occur during evaluation of expressions containing certain operators (<code>&&</code>, <code>||</code>, <code><a href="%3F%3A" class="mw-redirect" title="?:">?:</a></code> and the <a href="Comma_operator" title="Comma operator">comma operator</a>). This permits a high degree of object code optimization by the compiler, but requires C programmers to take more care to obtain reliable results than is needed for other programming languages.
</p><p>Kernighan and Ritchie say in the Introduction of <i>The C Programming Language</i>: "C, like any other language, has its blemishes. Some of the operators have the wrong precedence; some parts of the syntax could be better."<sup id="cite_ref-FOOTNOTEKernighanRitchie19783_43-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie19783-43"><span class="cite-bracket">[</span>38<span class="cite-bracket">]</span></a></sup> The C standard did not attempt to correct many of these blemishes, because of the impact of such changes on already existing software.
</p>
<div class="mw-heading mw-heading3"><h3 id="Character_set">Character set</h3></div>
<p>The basic C source character set includes the following characters:
</p>
<ul><li>Lowercase and uppercase letters of the <a href="ISO_basic_Latin_alphabet" title="ISO basic Latin alphabet">ISO basic Latin alphabet</a>: <code>a</code>–<code>z</code>, <code>A</code>–<code>Z</code></li>
<li>Decimal digits: <code>0</code>–<code>9</code></li>
<li>Graphic characters: <code>! " # % & ' ( ) * + , - . / : ; < = > ? [ \ ] ^ _ { | } ~</code></li>
<li><a href="Whitespace_character" title="Whitespace character">Whitespace characters</a>: <i><a href="Space_(punctuation)" title="Space (punctuation)">space</a></i>, <i><a href="Horizontal_tab" class="mw-redirect" title="Horizontal tab">horizontal tab</a></i>, <i><a href="Vertical_tab" class="mw-redirect" title="Vertical tab">vertical tab</a></i>, <i><a href="Form_feed" class="mw-redirect" title="Form feed">form feed</a></i>, <i><a href="Newline" title="Newline">newline</a></i></li></ul>
<p>The <i>newline</i> character indicates the end of a text line; it need not correspond to an actual single character, although for convenience C treats it as such.
</p><p>The POSIX standard mandates a <a href="Portable_character_set" title="Portable character set">portable character set</a> which adds a few characters (notably "@") to the basic C source character set. Both standards do not prescribe any particular value encoding -- ASCII and <a href="EBCDIC" title="EBCDIC">EBCDIC</a> both comply with these standards, since they include at least those basic characters, even though they use different encoded values for those characters.
</p><p>Additional multi-byte encoded characters may be used in <a href="String_literal" title="String literal">string literals</a>, but they are not entirely <a href="Software_portability" title="Software portability">portable</a>. Since <a href="C99" title="C99">C99</a> multi-national Unicode characters can be embedded portably within C source text by using <code>\uXXXX</code> or <code>\UXXXXXXXX</code> encoding (where <code>X</code> denotes a hexadecimal character).
</p><p>The basic C execution character set contains the same characters, along with representations for <a href="Bell_character" title="Bell character">alert</a>, <a href="Backspace" title="Backspace">backspace</a>, and <a href="Carriage_return" title="Carriage return">carriage return</a>. <a href="Run_time_(program_lifecycle_phase)" class="mw-redirect" title="Run time (program lifecycle phase)">Run-time</a> support for extended character sets has increased with each revision of the C standard.
</p>
<div class="mw-heading mw-heading3"><h3 id="Reserved_words">Reserved words</h3></div>
<p>All versions of C have <a href="Reserved_words" class="mw-redirect" title="Reserved words">reserved words</a> that are <a href="Case_sensitive" class="mw-redirect" title="Case sensitive">case sensitive</a>. As reserved words, they cannot be used for variable names.
</p><p>C89 has 32 reserved words:
</p>
<style data-mw-deduplicate="TemplateStyles:r1184024115">
/* start https://en.wikipedia.org/ */
.mw-parser-output .div-col{margin-top:0.3em;column-width:30em}.mw-parser-output .div-col-small{font-size:90%}.mw-parser-output .div-col-rules{column-rule:1px solid #aaa}.mw-parser-output .div-col dl,.mw-parser-output .div-col ol,.mw-parser-output .div-col ul{margin-top:0}.mw-parser-output .div-col li,.mw-parser-output .div-col dd{page-break-inside:avoid;break-inside:avoid-column}
/* end https://en.wikipedia.org/ */
</style><div class="div-col" style="column-width: 13em;">
<ul><li><code>auto</code></li>
<li><code><a href="Break_statement" class="mw-redirect" title="Break statement">break</a></code></li>
<li><code>case</code></li>
<li><code>char</code></li>
<li><code><a href="Const" class="mw-redirect" title="Const">const</a></code></li>
<li><code><a href="Continue_(keyword)" class="mw-redirect" title="Continue (keyword)">continue</a></code></li>
<li><code>default</code></li>
<li><code>do</code></li>
<li><code><a href="Double-precision_floating-point_format" title="Double-precision floating-point format">double</a></code></li>
<li><code><a href="Conditional_(computer_programming)" title="Conditional (computer programming)">else</a></code></li>
<li><code><a href="Enumerated_type" title="Enumerated type">enum</a></code></li>
<li><code><a href="Extern" class="mw-redirect" title="Extern">extern</a></code></li>
<li><code><a href="Floating-point_arithmetic" title="Floating-point arithmetic">float</a></code></li>
<li><code><a href="For_loop" title="For loop">for</a></code></li>
<li><code><a href="Goto" title="Goto">goto</a></code></li>
<li><code><a href="Conditional_(computer_programming)" title="Conditional (computer programming)">if</a></code></li>
<li><code><a href="Integer_(computer_science)" title="Integer (computer science)">int</a></code></li>
<li><code><a href="Long_integer" class="mw-redirect" title="Long integer">long</a></code></li>
<li><code><a href="Register_(keyword)" title="Register (keyword)">register</a></code></li>
<li><code><a href="Return_statement" title="Return statement">return</a></code></li>
<li><code><a href="Short_integer" class="mw-redirect" title="Short integer">short</a></code></li>
<li><code><a href="Signed_number_representations" title="Signed number representations">signed</a></code></li>
<li><code><a href="Sizeof" title="Sizeof">sizeof</a></code></li>
<li><code><a href="Static_(keyword)" title="Static (keyword)">static</a></code></li>
<li><code><a href="Struct_(C_programming_language)" title="Struct (C programming language)">struct</a></code></li>
<li><code><a href="Switch_statement" title="Switch statement">switch</a></code></li>
<li><code><a href="Typedef" title="Typedef">typedef</a></code></li>
<li><code><a href="Union_type" title="Union type">union</a></code></li>
<li><code><a href="Signed_number_representations" title="Signed number representations">unsigned</a></code></li>
<li><code><a href="Void_type" title="Void type">void</a></code></li>
<li><code><a href="Volatile_variable" class="mw-redirect" title="Volatile variable">volatile</a></code></li>
<li><code><a href="While_loop" title="While loop">while</a></code></li></ul>
</div>
<p>C99 added five more reserved words: (‡ indicates an alternative spelling alias for a C23 keyword)
</p>
<div class="div-col" style="column-width: 13em;">
<ul><li><code><a href="Inline_function" class="mw-redirect" title="Inline function">inline</a></code></li>
<li><code><a href="Restrict" title="Restrict">restrict</a></code></li>
<li><code>_Bool</code> ‡</li>
<li><code><a href="Complex_data_type" title="Complex data type">_Complex</a></code></li>
<li><code><a href="Complex_data_type" title="Complex data type">_Imaginary</a></code></li></ul>
</div>
<p>C11 added seven more reserved words:<sup id="cite_ref-ISOIEC_9899_44-0" class="reference"><a href="#cite_note-ISOIEC_9899-44"><span class="cite-bracket">[</span>39<span class="cite-bracket">]</span></a></sup> (‡ indicates an alternative spelling alias for a C23 keyword)
</p>
<div class="div-col" style="column-width: 13em;">
<ul><li><code>_Alignas</code> ‡</li>
<li><code>_Alignof</code> ‡</li>
<li><code>_Atomic</code></li>
<li><code>_Generic</code></li>
<li><code>_Noreturn</code></li>
<li><code>_Static_assert</code> ‡</li>
<li><code>_Thread_local</code> ‡</li></ul>
</div>
<p>C23 reserved fifteen more words:
</p>
<div class="div-col" style="column-width: 13em;">
<ul><li><code>alignas</code></li>
<li><code>alignof</code></li>
<li><code>bool</code></li>
<li><code>constexpr</code></li>
<li><code>false</code></li>
<li><code>nullptr</code></li>
<li><code>static_assert</code></li>
<li><code>thread_local</code></li>
<li><code>true</code></li>
<li><code>typeof</code></li>
<li><code>typeof_unqual</code></li>
<li><code>_BitInt</code></li>
<li><code>_Decimal32</code></li>
<li><code>_Decimal64</code></li>
<li><code>_Decimal128</code></li></ul>
</div>
<p>Most of the recently reserved words begin with an underscore followed by a capital letter, because identifiers of that form were previously reserved by the C standard for use only by implementations. Since existing program source code should not have been using these identifiers, it would not be affected when C implementations started supporting these extensions to the programming language. Some standard headers do define more convenient synonyms for underscored identifiers. Some of those words were added as keywords with their conventional spelling in C23 and the corresponding macros were removed.
</p><p>Prior to C89, <code>entry</code> was reserved as a keyword. In the second edition of their book <i><a href="The_C_Programming_Language" title="The C Programming Language">The C Programming Language</a></i>, which describes what became known as C89, Kernighan and Ritchie wrote, "The ... [keyword] <code>entry</code>, formerly reserved but never used, is no longer reserved." and "The stillborn <code>entry</code> keyword is withdrawn."<sup id="cite_ref-FOOTNOTEKernighanRitchie1988192,_259_45-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie1988192,_259-45"><span class="cite-bracket">[</span>40<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Operators">Operators</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="Operators_in_C_and_C%2B%2B" title="Operators in C and C++">Operators in C and C++</a></div>
<p>C supports a rich set of <a href="Operator_(computer_programming)" title="Operator (computer programming)">operators</a>, which are symbols used within an <a href="Expression_(computer_science)" title="Expression (computer science)">expression</a> to specify the manipulations to be performed while evaluating that expression. C has operators for:
</p>
<ul><li><a href="Arithmetic" title="Arithmetic">arithmetic</a>: <a href="Addition" title="Addition"><code>+</code></a>, <a href="Subtraction" title="Subtraction"><code>-</code></a>, <a href="Multiplication" title="Multiplication"><code>*</code></a>, <a href="Division_(mathematics)" title="Division (mathematics)"><code>/</code></a>, <a href="Modulo_operation" class="mw-redirect" title="Modulo operation"><code>%</code></a></li>
<li><a href="Assignment_(computer_science)" title="Assignment (computer science)">assignment</a>: <code>=</code></li>
<li><a href="Augmented_assignment" title="Augmented assignment">augmented assignment</a>: <code>+=</code>,<span class="nowrap"> </span><code>-=</code>,<span class="nowrap"> </span><code>*=</code>,<span class="nowrap"> </span><code>/=</code>,<span class="nowrap"> </span><code>%=</code>,<span class="nowrap"> </span><code>&=</code>,<span class="nowrap"> </span><code>|=</code>,<span class="nowrap"> </span><code>^=</code>,<span class="nowrap"> </span><code><<=</code>,<span class="nowrap"> </span><code>>>=</code></li>
<li><a href="Bitwise_logic" class="mw-redirect" title="Bitwise logic">bitwise logic</a>: <code>~</code>, <code>&</code>, <code>|</code>, <code>^</code></li>
<li><a href="Bitwise_shift" class="mw-redirect" title="Bitwise shift">bitwise shifts</a>: <code><<</code>, <code>>></code></li>
<li><a href="Boolean_logic" class="mw-redirect" title="Boolean logic">Boolean logic</a>: <code>!</code>, <code>&&</code>, <code>||</code></li>
<li><a href="%3F%3A" class="mw-redirect" title="?:">conditional evaluation</a>: <a href="%3F%3A" class="mw-redirect" title="?:"><code>? :</code></a></li>
<li>equality testing: <a href="Equality_(mathematics)" title="Equality (mathematics)"><code>==</code></a>, <a href="Inequality_(mathematics)" title="Inequality (mathematics)"><code>!=</code></a></li>
<li><a href="Subroutine" class="mw-redirect" title="Subroutine">calling functions</a>: <code>( )</code></li>
<li><a href="Increment_and_decrement_operators" title="Increment and decrement operators">increment and decrement</a>: <code>++</code>, <code>--</code></li>
<li><a href="Record_(computer_science)" title="Record (computer science)">member selection</a>: <code>.</code>, <code>-></code></li>
<li>object size: <code><a href="Sizeof" title="Sizeof">sizeof</a></code></li>
<li>type: <code><a href="Typeof" title="Typeof">typeof</a></code>, <code>typeof_unqual</code> <i>since C23</i></li>
<li><a href="Order_relation" class="mw-redirect" title="Order relation">order relations</a>: <code><</code>, <code><=</code>, <code>></code>, <code>>=</code></li>
<li><a href="Pointer_(computer_programming)" title="Pointer (computer programming)">reference and dereference</a>: <code>&</code>, <code>*</code>, <code>[ ]</code></li>
<li>sequencing: <a href="Comma_operator" title="Comma operator"><code>,</code></a></li>
<li><a href="Order_of_operations#Programming_languages" title="Order of operations">subexpression grouping</a>: <code>( )</code></li>
<li><a href="Type_conversion" title="Type conversion">type conversion</a>: <code>(<i>typename</i>)</code></li></ul>
<p>C uses the operator <code>=</code> (used in mathematics to express equality) to indicate assignment, following the precedent of <a href="Fortran" title="Fortran">Fortran</a> and <a href="PL/I" title="PL/I">PL/I</a>, but unlike <a href="ALGOL" title="ALGOL">ALGOL</a> and its derivatives. C uses the operator <code>==</code> to test for equality. The similarity between the operators for assignment and equality may result in the accidental use of one in place of the other, and in many cases the mistake does not produce an error message (although some compilers produce warnings). For example, the conditional expression <code>if (a == b + 1)</code> might mistakenly be written as <code>if (a = b + 1)</code>, which will be evaluated as <code>true</code> unless the value of <code>a</code> is <code>0</code> after the assignment.<sup id="cite_ref-AutoTX-8_46-0" class="reference"><a href="#cite_note-AutoTX-8-46"><span class="cite-bracket">[</span>41<span class="cite-bracket">]</span></a></sup>
</p><p>The C <a href="Operator_precedence" class="mw-redirect" title="Operator precedence">operator precedence</a> is not always intuitive. For example, the operator <code>==</code> binds more tightly than (is executed prior to) the operators <code>&</code> (bitwise AND) and <code>|</code> (bitwise OR) in expressions such as <code>x & 1 == 0</code>, which must be written as <code>(x & 1) == 0</code> if that is the coder's intent.<sup id="cite_ref-AutoTX-9_47-0" class="reference"><a href="#cite_note-AutoTX-9-47"><span class="cite-bracket">[</span>42<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="Data_types">Data types</h3></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="C_data_types" title="C data types">C data types</a></div>
<style data-mw-deduplicate="TemplateStyles:r1251242444">
/* start https://en.wikipedia.org/ */
.mw-parser-output .ambox{border:1px solid #a2a9b1;border-left:10px solid #36c;background-color:#fbfbfb;box-sizing:border-box}.mw-parser-output .ambox+link+.ambox,.mw-parser-output .ambox+link+style+.ambox,.mw-parser-output .ambox+link+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+style+.ambox,.mw-parser-output .ambox+.mw-empty-elt+link+link+.ambox{margin-top:-1px}html body.mediawiki .mw-parser-output .ambox.mbox-small-left{margin:4px 1em 4px 0;overflow:hidden;width:238px;border-collapse:collapse;font-size:88%;line-height:1.25em}.mw-parser-output .ambox-speedy{border-left:10px solid #b32424;background-color:#fee7e6}.mw-parser-output .ambox-delete{border-left:10px solid #b32424}.mw-parser-output .ambox-content{border-left:10px solid #f28500}.mw-parser-output .ambox-style{border-left:10px solid #fc3}.mw-parser-output .ambox-move{border-left:10px solid #9932cc}.mw-parser-output .ambox-protection{border-left:10px solid #a2a9b1}.mw-parser-output .ambox .mbox-text{border:none;padding:0.25em 0.5em;width:100%}.mw-parser-output .ambox .mbox-image{border:none;padding:2px 0 2px 0.5em;text-align:center}.mw-parser-output .ambox .mbox-imageright{border:none;padding:2px 0.5em 2px 0;text-align:center}.mw-parser-output .ambox .mbox-empty-cell{border:none;padding:0;width:1px}.mw-parser-output .ambox .mbox-image-div{width:52px}@media(min-width:720px){.mw-parser-output .ambox{margin:0 10%}}@media print{body.ns-0 .mw-parser-output .ambox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style>
<p>The <a href="Type_system" title="Type system">type system</a> in C is <a href="Static_typing" class="mw-redirect" title="Static typing">static</a> and <a href="Strong_and_weak_typing" title="Strong and weak typing">weakly typed</a>, which makes it similar to the type system of <a href="ALGOL" title="ALGOL">ALGOL</a> descendants such as <a href="Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a>.<sup id="cite_ref-Nmlwr_48-0" class="reference"><a href="#cite_note-Nmlwr-48"><span class="cite-bracket">[</span>43<span class="cite-bracket">]</span></a></sup> There are built-in types for integers of various sizes, both signed and unsigned, <a href="Floating-point_number" class="mw-redirect" title="Floating-point number">floating-point numbers</a>, and enumerated types (<code>enum</code>). Integer type <code>char</code> is often used for single-byte characters. C99 added a <a href="Boolean_data_type" title="Boolean data type">Boolean data type</a>. There are also derived types including <a href="Array_(data_type)" title="Array (data type)">arrays</a>, <a href="Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a>, <a href="Record_(computer_science)" title="Record (computer science)">records</a> (<code><a href="Struct_(C_programming_language)" title="Struct (C programming language)">struct</a></code>), and <a href="Union_(computer_science)" class="mw-redirect" title="Union (computer science)">unions</a> (<code>union</code>).
</p><p>C is often used in low-level systems programming where escapes from the type system may be necessary. The compiler attempts to ensure type correctness of most expressions, but the programmer can override the checks in various ways, either by using a <i><a href="Type_conversion" title="Type conversion">type cast</a></i> to explicitly convert a value from one type to another, or by using pointers or unions to reinterpret the underlying bits of a data object in some other way.
</p><p>Some find C's declaration syntax unintuitive, particularly for <a href="Function_pointer" title="Function pointer">function pointers</a>. (Ritchie's idea was to declare identifiers in contexts resembling their use: "<a href="Declaration_reflects_use" class="mw-redirect" title="Declaration reflects use">declaration reflects use</a>".)<sup id="cite_ref-FOOTNOTEKernighanRitchie1988122_49-0" class="reference"><a href="#cite_note-FOOTNOTEKernighanRitchie1988122-49"><span class="cite-bracket">[</span>44<span class="cite-bracket">]</span></a></sup>
</p><p>C's <i>usual arithmetic conversions</i> allow for efficient code to be generated, but can sometimes produce unexpected results. For example, a comparison of signed and unsigned integers of equal width requires a conversion of the signed value to unsigned. This can generate unexpected results if the signed value is negative.
</p>
<div class="mw-heading mw-heading4"><h4 id="Pointers">Pointers</h4></div>
<p>C supports the use of <a href="Pointer_(computer_programming)" title="Pointer (computer programming)">pointers</a>, a type of <a href="Reference_(computer_science)" title="Reference (computer science)">reference</a> that records the address or location of an object or function in memory. Pointers can be <i>dereferenced</i> to access data stored at the address pointed to, or to invoke a pointed-to function. Pointers can be manipulated using assignment or <a href="Pointer_arithmetic" class="mw-redirect" title="Pointer arithmetic">pointer arithmetic</a>. The run-time representation of a pointer value is typically a raw memory address (perhaps augmented by an offset-within-word field), but since a pointer's type includes the type of the thing pointed to, expressions including pointers can be type-checked at compile time. Pointer arithmetic is automatically scaled by the size of the pointed-to data type.
</p><p>Pointers are used for many purposes in C. <a href="Text_string" class="mw-redirect" title="Text string">Text strings</a> are commonly manipulated using pointers into arrays of characters. <a href="Dynamic_memory_allocation" class="mw-redirect" title="Dynamic memory allocation">Dynamic memory allocation</a> is performed using pointers; the result of a <code>malloc</code> is usually <a href="Type_conversion" title="Type conversion">cast</a> to the data type of the data to be stored. Many data types, such as <a href="Tree_(data_structure)" class="mw-redirect" title="Tree (data structure)">trees</a>, are commonly implemented as dynamically allocated <code>struct</code> objects linked together using pointers. Pointers to other pointers are often used in multi-dimensional arrays and arrays of <code>struct</code> objects. Pointers to functions (<i><a href="Function_pointer" title="Function pointer">function pointers</a></i>) are useful for passing functions as arguments to <a href="Higher-order_function" title="Higher-order function">higher-order functions</a> (such as <a href="Qsort" title="Qsort">qsort</a> or <a href="Bsearch" class="mw-redirect" title="Bsearch">bsearch</a>), in <a href="Dispatch_table" title="Dispatch table">dispatch tables</a>, or as <a href="Callbacks" class="mw-redirect" title="Callbacks">callbacks</a> to <a href="Event_handler" class="mw-redirect" title="Event handler">event handlers</a>.<sup id="cite_ref-bk21st_23-1" class="reference"><a href="#cite_note-bk21st-23"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup>
</p><p>A <i><a href="Null_pointer" title="Null pointer">null pointer</a> value</i> explicitly points to no valid location. Dereferencing a null pointer value is undefined, often resulting in a <a href="Segmentation_fault" title="Segmentation fault">segmentation fault</a>. Null pointer values are useful for indicating special cases such as no "next" pointer in the final node of a <a href="Linked_list" title="Linked list">linked list</a>, or as an error indication from functions returning pointers. In appropriate contexts in source code, such as for assigning to a pointer variable, a <i>null pointer constant</i> can be written as <code>0</code>, with or without explicit casting to a pointer type, as the <code>NULL</code> macro defined by several standard headers or, since C23 with the constant <code>nullptr</code>. In conditional contexts, null pointer values evaluate to <code>false</code>, while all other pointer values evaluate to <code>true</code>.
</p><p>Void pointers (<code>void *</code>) point to objects of unspecified type, and can therefore be used as "generic" data pointers. Since the size and type of the pointed-to object is not known, void pointers cannot be dereferenced, nor is pointer arithmetic on them allowed, although they can easily be (and in many contexts implicitly are) converted to and from any other object pointer type.<sup id="cite_ref-bk21st_23-2" class="reference"><a href="#cite_note-bk21st-23"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup>
</p><p>Careless use of pointers is potentially dangerous. Because they are typically unchecked, a pointer variable can be made to point to any arbitrary location, which can cause undesirable effects. Although properly used pointers point to safe places, they can be made to point to unsafe places by using invalid <a href="Pointer_arithmetic" class="mw-redirect" title="Pointer arithmetic">pointer arithmetic</a>; the objects they point to may continue to be used after deallocation (<a href="Dangling_pointer" title="Dangling pointer">dangling pointers</a>); they may be used without having been initialized (<a href="Wild_pointer" class="mw-redirect" title="Wild pointer">wild pointers</a>); or they may be directly assigned an unsafe value using a cast, union, or through another corrupt pointer. In general, C is permissive in allowing manipulation of and conversion between pointer types, although compilers typically provide options for various levels of checking. Some other programming languages address these problems by using more restrictive <a href="Reference_(computer_science)" title="Reference (computer science)">reference</a> types.
</p>
<div class="mw-heading mw-heading4"><h4 id="Arrays">Arrays</h4></div>
<div role="note" class="hatnote navigation-not-searchable">See also: <a href="C_string_handling" title="C string handling">C string handling</a></div>
<p><a href="Array_(data_type)" title="Array (data type)">Array</a> types in C are traditionally of a fixed, static size specified at compile time. The more recent C99 standard also allows a form of variable-length arrays. However, it is also possible to allocate a block of memory (of arbitrary size) at run-time, using the standard library's <code>malloc</code> function, and treat it as an array.
</p><p>Since arrays are always accessed (in effect) via pointers, array accesses are typically <i>not</i> checked against the underlying array size, although some compilers may provide <a href="Bounds_checking" title="Bounds checking">bounds checking</a> as an option.<sup id="cite_ref-fedoraproject_50-0" class="reference"><a href="#cite_note-fedoraproject-50"><span class="cite-bracket">[</span>45<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-Programming_with_C_51-0" class="reference"><a href="#cite_note-Programming_with_C-51"><span class="cite-bracket">[</span>46<span class="cite-bracket">]</span></a></sup> Array bounds violations are therefore possible and can lead to various repercussions, including illegal memory accesses, corruption of data, <a href="Buffer_overruns" class="mw-redirect" title="Buffer overruns">buffer overruns</a>, and run-time exceptions.
</p><p>C does not have a special provision for declaring <a href="Multi-dimensional_array" class="mw-redirect" title="Multi-dimensional array">multi-dimensional arrays</a>, but rather relies on <a href="Recursion_(computer_science)" title="Recursion (computer science)">recursion</a> within the type system to declare arrays of arrays, which effectively accomplishes the same thing. The index values of the resulting "multi-dimensional array" can be thought of as increasing in <a href="Row-major_order" class="mw-redirect" title="Row-major order">row-major order</a>. Multi-dimensional arrays are commonly used in numerical algorithms (mainly from applied <a href="Linear_algebra" title="Linear algebra">linear algebra</a>) to store matrices. The structure of the C array is well suited to this particular task. However, in early versions of C the bounds of the array must be known fixed values or else explicitly passed to any subroutine that requires them, and dynamically sized arrays of arrays cannot be accessed using double indexing. (A workaround for this was to allocate the array with an additional "row vector" of pointers to the columns.) C99 introduced "variable-length arrays" which address this issue.
</p><p>The following example using modern C (C99 or later) shows allocation of a two-dimensional array on the heap and the use of multi-dimensional array indexing for accesses (which can use bounds-checking on many C compilers):
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span class="kt">int</span><span class="w"> </span><span class="nf">func</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">N</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">M</span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="p">)[</span><span class="n">N</span><span class="p">]</span><span class="w"> </span><span class="p">[</span><span class="n">M</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">malloc</span><span class="p">(</span><span class="k">sizeof</span><span class="w"> </span><span class="o">*</span><span class="n">p</span><span class="p">);</span>
<span class="w"> </span><span class="k">if</span><span class="w"> </span><span class="p">(</span><span class="n">p</span><span class="w"> </span><span class="o">==</span><span class="w"> </span><span class="mi">0</span><span class="p">)</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">-1</span><span class="p">;</span>
<span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">N</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
<span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">M</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span>
<span class="w"> </span><span class="p">(</span><span class="o">*</span><span class="n">p</span><span class="p">)[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
<span class="w"> </span><span class="n">print_array</span><span class="p">(</span><span class="n">N</span><span class="p">,</span><span class="w"> </span><span class="n">M</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">);</span>
<span class="w"> </span><span class="n">free</span><span class="p">(</span><span class="n">p</span><span class="p">);</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<p>And here is a similar implementation using C99's <i>Auto <a href="Variable_length_array" class="mw-redirect" title="Variable length array">VLA</a></i> feature:<sup id="cite_ref-52" class="reference"><a href="#cite_note-52"><span class="cite-bracket">[</span>f<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-highlight mw-highlight-lang-c mw-content-ltr" dir="ltr"><pre><span class="kt">int</span><span class="w"> </span><span class="nf">func</span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">N</span><span class="p">,</span><span class="w"> </span><span class="kt">int</span><span class="w"> </span><span class="n">M</span><span class="p">)</span>
<span class="p">{</span>
<span class="w"> </span><span class="c1">// Caution: checks should be made to ensure N*M*sizeof(float) does NOT exceed limitations for auto VLAs and is within available size of stack.</span>
<span class="w"> </span><span class="kt">float</span><span class="w"> </span><span class="n">p</span><span class="p">[</span><span class="n">N</span><span class="p">]</span><span class="w"> </span><span class="p">[</span><span class="n">M</span><span class="p">];</span><span class="w"> </span><span class="c1">// auto VLA is held on the stack, and sized when the function is invoked</span>
<span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">N</span><span class="p">;</span><span class="w"> </span><span class="n">i</span><span class="o">++</span><span class="p">)</span>
<span class="w"> </span><span class="k">for</span><span class="w"> </span><span class="p">(</span><span class="kt">int</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="mi">0</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="w"> </span><span class="o"><</span><span class="w"> </span><span class="n">M</span><span class="p">;</span><span class="w"> </span><span class="n">j</span><span class="o">++</span><span class="p">)</span>
<span class="w"> </span><span class="n">p</span><span class="p">[</span><span class="n">i</span><span class="p">]</span><span class="w"> </span><span class="p">[</span><span class="n">j</span><span class="p">]</span><span class="w"> </span><span class="o">=</span><span class="w"> </span><span class="n">i</span><span class="w"> </span><span class="o">+</span><span class="w"> </span><span class="n">j</span><span class="p">;</span>
<span class="w"> </span><span class="n">print_array</span><span class="p">(</span><span class="n">N</span><span class="p">,</span><span class="w"> </span><span class="n">M</span><span class="p">,</span><span class="w"> </span><span class="n">p</span><span class="p">);</span>
<span class="w"> </span><span class="c1">// no need to free(p) since it will disappear when the function exits, along with the rest of the stack frame</span>
<span class="w"> </span><span class="k">return</span><span class="w"> </span><span class="mi">1</span><span class="p">;</span>
<span class="p">}</span>
</pre></div>
<div class="mw-heading mw-heading4"><h4 id="Array–pointer_interchangeability">Array–pointer interchangeability</h4></div>
<p>The subscript notation <code>x[i]</code> (where <code>x</code> designates a pointer) is <a href="Syntactic_sugar" title="Syntactic sugar">syntactic sugar</a> for <code>*(x+i)</code>.<sup id="cite_ref-Raymond1996_53-0" class="reference"><a href="#cite_note-Raymond1996-53"><span class="cite-bracket">[</span>47<span class="cite-bracket">]</span></a></sup> Taking advantage of the compiler's knowledge of the pointer type, the address that <code>x + i</code> points to is not the base address (pointed to by <code>x</code>) incremented by <code>i</code> bytes, but rather is defined to be the base address incremented by <code>i</code> multiplied by the size of an element that <code>x</code> points to. Thus, <code>x[i]</code> designates the <code>i+1</code>th element of the array.
</p><p>Furthermore, in most expression contexts (a notable exception is as operand of <code><a href="Sizeof" title="Sizeof">sizeof</a></code>), an expression of array type is automatically converted to a pointer to the array's first element. This implies that an array is never copied as a whole when named as an argument to a function, but rather only the address of its first element is passed. Therefore, although function calls in C use <a href="Pass-by-value" class="mw-redirect" title="Pass-by-value">pass-by-value</a> semantics, arrays are in effect passed by <a href="Reference_(computer_science)" title="Reference (computer science)">reference</a>.
</p><p>The total size of an array <code>x</code> can be determined by applying <code>sizeof</code> to an expression of array type. The size of an element can be determined by applying the operator <code>sizeof</code> to any dereferenced element of an array <code>A</code>, as in <code>n = sizeof A[0]</code>. Thus, the number of elements in a declared array <code>A</code> can be determined as <code>sizeof A / sizeof A[0]</code>. Note, that if only a pointer to the first element is available as it is often the case in C code because of the automatic conversion described above, the information about the full type of the array and its length are lost.
</p>
<div class="mw-heading mw-heading3"><h3 id="Memory_management">Memory management</h3></div>
<p>One of the most important functions of a programming language is to provide facilities for managing <a href="Computer_memory" title="Computer memory">memory</a> and the objects that are stored in memory. C provides three principal ways to allocate memory for objects:<sup id="cite_ref-bk21st_23-3" class="reference"><a href="#cite_note-bk21st-23"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup>
</p>
<ul><li><a href="Static_memory_allocation" class="mw-redirect" title="Static memory allocation">Static memory allocation</a>: space for the object is provided in the binary at compile-time; these objects have an <a href="Variable_(programming)" class="mw-redirect" title="Variable (programming)">extent</a> (or lifetime) as long as the binary which contains them is loaded into memory.</li>
<li><a href="Automatic_memory_allocation" class="mw-redirect" title="Automatic memory allocation">Automatic memory allocation</a>: temporary objects can be stored on the <a href="Call_stack" title="Call stack">stack</a>, and this space is automatically freed and reusable after the block in which they are declared is exited.</li>
<li><a href="C_dynamic_memory_allocation" title="C dynamic memory allocation">Dynamic memory allocation</a>: blocks of memory of arbitrary size can be requested at run-time using library functions such as <code>malloc</code> from a region of memory called the <a href="Memory_management" title="Memory management">heap</a>; these blocks persist until subsequently freed for reuse by calling the library function <code>realloc</code> or <code>free</code>.</li></ul>
<p>These three approaches are appropriate in different situations and have various trade-offs. For example, static memory allocation has little allocation overhead, automatic allocation may involve slightly more overhead, and dynamic memory allocation can potentially have a great deal of overhead for both allocation and deallocation. The persistent nature of static objects is useful for maintaining state information across function calls, automatic allocation is easy to use but stack space is typically much more limited and transient than either static memory or heap space, and dynamic memory allocation allows convenient allocation of objects whose size is known only at run-time. Most C programs make extensive use of all three.
</p><p>Where possible, automatic or static allocation is usually simplest because the storage is managed by the compiler, freeing the programmer of the potentially error-prone chore of manually allocating and releasing storage. However, many data structures can change in size at runtime, and since static allocations (and automatic allocations before C99) must have a fixed size at compile-time, there are many situations in which dynamic allocation is necessary.<sup id="cite_ref-bk21st_23-4" class="reference"><a href="#cite_note-bk21st-23"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup> Prior to the C99 standard, variable-sized arrays were a common example of this. (See the article on <a href="C_dynamic_memory_allocation" title="C dynamic memory allocation">C dynamic memory allocation</a> for an example of dynamically allocated arrays.) Unlike automatic allocation, which can fail at run time with uncontrolled consequences, the dynamic allocation functions return an indication (in the form of a null pointer value) when the required storage cannot be allocated. (Static allocation that is too large is usually detected by the <a href="Linker_(computing)" title="Linker (computing)">linker</a> or <a href="Loader_(computing)" title="Loader (computing)">loader</a>, before the program can even begin execution.)
</p><p>Unless otherwise specified, static objects contain zero or null pointer values upon program startup. Automatically and dynamically allocated objects are initialized only if an initial value is explicitly specified; otherwise they initially have indeterminate values (typically, whatever <a href="Bit_pattern" class="mw-redirect" title="Bit pattern">bit pattern</a> happens to be present in the <a href="Computer_storage" class="mw-redirect" title="Computer storage">storage</a>, which might not even represent a valid value for that type). If the program attempts to access an uninitialized value, the results are undefined. Many modern compilers try to detect and warn about this problem, but both <a href="Type_I_and_type_II_errors" title="Type I and type II errors">false positives and false negatives</a> can occur.
</p><p>Heap memory allocation has to be synchronized with its actual usage in any program to be reused as much as possible. For example, if the only pointer to a heap memory allocation goes out of scope or has its value overwritten before it is deallocated explicitly, then that memory cannot be recovered for later reuse and is essentially lost to the program, a phenomenon known as a <i><a href="Memory_leak" title="Memory leak">memory leak</a>.</i> Conversely, it is possible for memory to be freed, but is referenced subsequently, leading to unpredictable results. Typically, the failure symptoms appear in a portion of the program unrelated to the code that causes the error, making it difficult to diagnose the failure. Such issues are ameliorated in languages with <a href="Automatic_garbage_collection" class="mw-redirect" title="Automatic garbage collection">automatic garbage collection</a>.
</p>
<div class="mw-heading mw-heading3"><h3 id="Libraries">Libraries</h3></div>
<p>The C programming language uses <a href="Library_(computing)" title="Library (computing)">libraries</a> as its primary method of extension. In C, a library is a set of functions contained within a single "archive" file. Each library typically has a <a href="Header_file" class="mw-redirect" title="Header file">header file</a>, which contains the prototypes of the functions contained within the library that may be used by a program, and declarations of special data types and macro symbols used with these functions. For a program to use a library, it must include the library's header file, and the library must be linked with the program, which in many cases requires <a href="Compiler_flag" class="mw-redirect" title="Compiler flag">compiler flags</a> (e.g., <code>-lm</code>, shorthand for "link the math library").<sup id="cite_ref-bk21st_23-5" class="reference"><a href="#cite_note-bk21st-23"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup>
</p><p>The most common C library is the <a href="C_standard_library" title="C standard library">C standard library</a>, which is specified by the <a href="ISO_standard" class="mw-redirect" title="ISO standard">ISO</a> and <a href="ANSI_C" title="ANSI C">ANSI C</a> standards and comes with every C implementation (implementations which target limited environments such as <a href="Embedded_system" title="Embedded system">embedded systems</a> may provide only a subset of the standard library). This library supports stream input and output, memory allocation, mathematics, character strings, and time values. Several separate standard headers (for example, <code>stdio.h</code>) specify the interfaces for these and other standard library facilities.
</p><p>Another common set of C library functions are those used by applications specifically targeted for <a href="Unix" title="Unix">Unix</a> and <a href="Unix-like" title="Unix-like">Unix-like</a> systems, especially functions which provide an interface to the <a href="Kernel_(operating_system)" title="Kernel (operating system)">kernel</a>. These functions are detailed in various standards such as <a href="POSIX" title="POSIX">POSIX</a> and the <a href="Single_UNIX_Specification" title="Single UNIX Specification">Single UNIX Specification</a>.
</p><p>Since many programs have been written in C, there are a wide variety of other libraries available. Libraries are often written in C because C compilers generate efficient <a href="Object_code" title="Object code">object code</a>; programmers then create interfaces to the library so that the routines can be used from higher-level languages like <a href="Java_(programming_language)" title="Java (programming language)">Java</a>, <a href="Perl" title="Perl">Perl</a>, and <a href="Python_(programming_language)" title="Python (programming language)">Python</a>.<sup id="cite_ref-bk21st_23-6" class="reference"><a href="#cite_note-bk21st-23"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading4"><h4 id="File_handling_and_streams">File handling and streams</h4></div>
<p>File input and output (I/O) is not part of the C language itself but instead is handled by libraries (such as the C standard library) and their associated header files (e.g. <code>stdio.h</code>). File handling is generally implemented through high-level I/O which works through <a href="Stream_(computing)" title="Stream (computing)">streams</a>. A stream is from this perspective a data flow that is independent of devices, while a file is a concrete device. The high-level I/O is done through the association of a stream to a file. In the C standard library, a <a href="Data_buffer" title="Data buffer">buffer</a> (a memory area or queue) is temporarily used to store data before it is sent to the final destination. This reduces the time spent waiting for slower devices, for example a <a href="Hard_drive" class="mw-redirect" title="Hard drive">hard drive</a> or <a href="Solid-state_drive" title="Solid-state drive">solid-state drive</a>. Low-level I/O functions are not part of the standard C library but are generally part of "bare metal" programming (programming that is independent of any <a href="Operating_system" title="Operating system">operating system</a> such as most <a href="Embedded_programming" class="mw-redirect" title="Embedded programming">embedded programming</a>). With few exceptions, implementations include low-level I/O.
</p>
<div class="mw-heading mw-heading2"><h2 id="Language_tools">Language tools</h2></div>
<p>A number of tools have been developed to help C programmers find and fix statements with undefined behavior or possibly erroneous expressions, with greater rigor than that provided by the compiler.
</p><p>Automated source code checking and auditing tools exist, such as <a href="Lint_(software)" title="Lint (software)">Lint</a>. A common practice is to use Lint to detect questionable code when a program is first written. Once a program passes Lint, it is then compiled using the C compiler. Also, many compilers can optionally warn about syntactically valid constructs that are likely to actually be errors. <a href="MISRA_C" title="MISRA C">MISRA C</a> is a proprietary set of guidelines to avoid such questionable code, developed for embedded systems.<sup id="cite_ref-MI2L0_54-0" class="reference"><a href="#cite_note-MI2L0-54"><span class="cite-bracket">[</span>48<span class="cite-bracket">]</span></a></sup>
</p><p>There are also compilers, libraries, and operating system level mechanisms for performing actions that are not a standard part of C, such as <a href="Bounds_checking" title="Bounds checking">bounds checking</a> for arrays, detection of <a href="Buffer_overflow" title="Buffer overflow">buffer overflow</a>, <a href="Serialization" title="Serialization">serialization</a>, <a href="Dynamic_memory" class="mw-redirect" title="Dynamic memory">dynamic memory</a> tracking, and <a href="Automatic_garbage_collection" class="mw-redirect" title="Automatic garbage collection">automatic garbage collection</a>.
</p><p>Memory management checking tools like <a href="IBM_Rational_Purify" class="mw-redirect" title="IBM Rational Purify">Purify</a> or <a href="Valgrind" title="Valgrind">Valgrind</a> and linking with libraries containing special versions of the <a href="Malloc" class="mw-redirect" title="Malloc">memory allocation functions</a> can help uncover runtime errors in memory usage.<sup id="cite_ref-55" class="reference"><a href="#cite_note-55"><span class="cite-bracket">[</span>49<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-56" class="reference"><a href="#cite_note-56"><span class="cite-bracket">[</span>50<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading2"><h2 id="Uses">Uses</h2></div>
<div class="mw-heading mw-heading3"><h3 id="Rationale_for_use_in_systems_programming">Rationale for use in systems programming</h3></div>
<p>C is widely used for <a href="Systems_programming" title="Systems programming">systems programming</a> in implementing <a href="Operating_system" title="Operating system">operating systems</a> and <a href="Embedded_system" title="Embedded system">embedded system</a> applications.<sup id="cite_ref-Zh3CW_57-0" class="reference"><a href="#cite_note-Zh3CW-57"><span class="cite-bracket">[</span>51<span class="cite-bracket">]</span></a></sup> This is for several reasons:
</p>
<ul><li>The C language permits platform hardware and memory to be accessed with pointers and <a href="Type_punning" title="Type punning">type punning</a>, so system-specific features (e.g. <a href="Control/Status_Register" title="Control/Status Register">Control/Status Registers</a>, <a href="Memory-mapped_I/O" class="mw-redirect" title="Memory-mapped I/O">I/O registers</a>) can be configured and used with code written in C – it allows fullest control of the platform it is running on.</li>
<li>The code generated after compilation does not demand many <a href="Runtime_system" title="Runtime system">system features</a>, and can be invoked from some boot code in a straightforward manner – it is simple to execute.</li>
<li>The C language statements and expressions typically map well on to sequences of instructions for the target processor, and consequently there is a low <a href="Run_time_(program_lifecycle_phase)" class="mw-redirect" title="Run time (program lifecycle phase)">run-time</a> demand on system resources – it is fast to execute.</li>
<li>With its rich set of operators, the C language can use many of the features of target CPUs. Where a particular CPU has more esoteric instructions, a language variant can be constructed with perhaps <a href="Intrinsic_function" title="Intrinsic function">intrinsic functions</a> to exploit those instructions – it can use practically all the target CPU's features.</li>
<li>The language makes it easy to overlay structures onto blocks of binary data, allowing the data to be comprehended, navigated and modified – it can write data structures, even file systems.</li>
<li>The language supports a rich set of operators, including bit manipulation, for integer arithmetic and logic, and perhaps different sizes of floating point numbers – it can process appropriately structured data effectively.</li>
<li>C is a fairly small language, with only a handful of statements, and without too many features that generate extensive target code – it is comprehensible.</li>
<li>C has direct control over memory allocation and deallocation, which gives reasonable efficiency and predictable timing to memory-handling operations, without any concerns for sporadic <i><a href="Stop-the-world" class="mw-redirect" title="Stop-the-world">stop-the-world</a></i> garbage collection events – it has predictable performance.</li>
<li>C permits the use and implementation of different <a href="C_dynamic_memory_allocation" title="C dynamic memory allocation">memory allocation</a> schemes, including a typical <code class="mw-highlight mw-highlight-lang-c mw-content-ltr" style="" dir="ltr"><span class="n">malloc</span></code> and <code class="mw-highlight mw-highlight-lang-c mw-content-ltr" style="" dir="ltr"><span class="n">free</span></code>; a more sophisticated mechanism with <a href="Region-based_memory_management" title="Region-based memory management"><i>arenas</i></a>; or a version for an <a href="OS_kernel" class="mw-redirect" title="OS kernel">OS kernel</a> that may suit <a href="Direct_memory_access" title="Direct memory access">DMA</a>, use within <a href="Interrupt_handler" title="Interrupt handler">interrupt handlers</a>, or integrated with the <a href="Virtual_memory" title="Virtual memory">virtual memory</a> system.</li>
<li>Depending on the linker and environment, C code can also call libraries written in <a href="Assembly_language" title="Assembly language">assembly language</a>, and may be called from assembly language – it interoperates well with other lower-level code.</li>
<li>C and its <a href="Calling_convention" title="Calling convention">calling conventions</a> and linker structures are commonly used in conjunction with other high-level languages, with calls both to C and from C supported – it interoperates well with other high-level code.</li>
<li>C has a mature and broad ecosystem, including libraries, frameworks, open source compilers, debuggers and utilities, and is the de facto standard. It is likely the drivers already exist in C, or that there is a similar CPU architecture as a back-end of a C compiler, so there is reduced incentive to choose another language.</li></ul>
<div class="mw-heading mw-heading3"><h3 id="Used_for_computationally-intensive_libraries">Used for computationally-intensive libraries</h3></div>
<p>C enables programmers to create efficient implementations of algorithms and data structures, because the layer of abstraction from hardware is thin, and its overhead is low, an important criterion for computationally intensive programs. For example, the <a href="GNU_Multiple_Precision_Arithmetic_Library" title="GNU Multiple Precision Arithmetic Library">GNU Multiple Precision Arithmetic Library</a>, the <a href="GNU_Scientific_Library" title="GNU Scientific Library">GNU Scientific Library</a>, <a href="Mathematica" class="mw-redirect" title="Mathematica">Mathematica</a>, and <a href="MATLAB" title="MATLAB">MATLAB</a> are completely or partially written in C. Many languages support calling library functions in C, for example, the <a href="Python_(programming_language)" title="Python (programming language)">Python</a>-based framework <a href="NumPy" title="NumPy">NumPy</a> uses C for the high-performance and hardware-interacting aspects.
</p>
<div class="mw-heading mw-heading3"><h3 id="Games">Games</h3></div>
<p>Computer games are often built from a combination of languages. C has featured significantly, especially for those games attempting to obtain best performance from computer platforms. Examples include Doom from 1993.<sup id="cite_ref-58" class="reference"><a href="#cite_note-58"><span class="cite-bracket">[</span>52<span class="cite-bracket">]</span></a></sup>
</p>
<div class="mw-heading mw-heading3"><h3 id="C_as_an_intermediate_language">C as an intermediate language</h3></div>
<p>C is sometimes used as an <a href="Intermediate_language" class="mw-redirect" title="Intermediate language">intermediate language</a> by implementations of other languages. This approach may be used for portability or convenience; by using C as an intermediate language, additional machine-specific code generators are not necessary. C has some features, such as line-number preprocessor directives and optional superfluous commas at the end of initializer lists, that support compilation of generated code. However, some of C's shortcomings have prompted the development of other <a href="C-based_languages" class="mw-redirect" title="C-based languages">C-based languages</a> specifically designed for use as intermediate languages, such as <a href="C--" title="C--">C--</a>. Also, contemporary major compilers <a href="GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a> and <a href="LLVM" title="LLVM">LLVM</a> both feature an <a href="Intermediate_representation" title="Intermediate representation">intermediate representation</a> that is not C, and those compilers support front ends for many languages including C.
</p>
<div class="mw-heading mw-heading3"><h3 id="Other_languages_written_in_C">Other languages written in C</h3></div>
<p>A consequence of C's wide availability and efficiency is that <a href="Compiler" title="Compiler">compilers</a>, libraries and <a href="Interpreter_(computing)" title="Interpreter (computing)">interpreters</a> of other programming languages are often implemented in C.<sup id="cite_ref-59" class="reference"><a href="#cite_note-59"><span class="cite-bracket">[</span>53<span class="cite-bracket">]</span></a></sup> For example, the <a href="Reference_implementation" title="Reference implementation">reference implementations</a> of <a href="Python_(programming_language)" title="Python (programming language)">Python</a>,<sup id="cite_ref-60" class="reference"><a href="#cite_note-60"><span class="cite-bracket">[</span>54<span class="cite-bracket">]</span></a></sup> <a href="Perl" title="Perl">Perl</a>,<sup id="cite_ref-61" class="reference"><a href="#cite_note-61"><span class="cite-bracket">[</span>55<span class="cite-bracket">]</span></a></sup> <a href="Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a>,<sup id="cite_ref-62" class="reference"><a href="#cite_note-62"><span class="cite-bracket">[</span>56<span class="cite-bracket">]</span></a></sup> and <a href="PHP" title="PHP">PHP</a><sup id="cite_ref-63" class="reference"><a href="#cite_note-63"><span class="cite-bracket">[</span>57<span class="cite-bracket">]</span></a></sup> are written in C.
</p>
<div class="mw-heading mw-heading3"><h3 id="Once_used_for_web_development">Once used for web development</h3></div>
<p>Historically, C was sometimes used for <a href="Web_development" title="Web development">web development</a> using the <a href="Common_Gateway_Interface" title="Common Gateway Interface">Common Gateway Interface</a> (CGI) as a "gateway" for information between the web application, the server, and the browser.<sup id="cite_ref-Dobbs_1995_64-0" class="reference"><a href="#cite_note-Dobbs_1995-64"><span class="cite-bracket">[</span>58<span class="cite-bracket">]</span></a></sup> C may have been chosen over <a href="Interpreted_language" class="mw-redirect" title="Interpreted language">interpreted languages</a> because of its speed, stability, and near-universal availability.<sup id="cite_ref-linuxjournal_2005_65-0" class="reference"><a href="#cite_note-linuxjournal_2005-65"><span class="cite-bracket">[</span>59<span class="cite-bracket">]</span></a></sup> It is no longer common practice for web development to be done in C,<sup id="cite_ref-66" class="reference"><a href="#cite_note-66"><span class="cite-bracket">[</span>60<span class="cite-bracket">]</span></a></sup> and many other <a href="Web_development#Server-side_languages" title="Web development">web development languages</a> are popular. Applications where C-based web development continues include the <a href="HTTP" title="HTTP">HTTP</a> configuration pages on <a href="Router_(computing)" title="Router (computing)">routers</a>, <a href="IoT" class="mw-redirect" title="IoT">IoT</a> devices and similar, although even here some projects have parts in higher-level languages e.g. the use of <a href="Lua_(programming_language)" class="mw-redirect" title="Lua (programming language)">Lua</a> within <a href="OpenWRT" class="mw-redirect" title="OpenWRT">OpenWRT</a>.
</p>
<div class="mw-heading mw-heading3"><h3 id="Web_servers">Web servers</h3></div>
<p>The two most popular <a href="Web_server" title="Web server">web servers</a>, <a href="Apache_HTTP_Server" title="Apache HTTP Server">Apache HTTP Server</a> and <a href="Nginx" title="Nginx">Nginx</a>, are both written in C. These web servers interact with the operating system, listen on TCP ports for HTTP requests, and then serve up static web content, or cause the execution of other languages handling to 'render' content such as <a href="PHP" title="PHP">PHP</a>, which is itself primarily written in C. C's close-to-the-metal approach allows for the construction of these high-performance software systems.
</p>
<div class="mw-heading mw-heading3"><h3 id="End-user_applications">End-user applications</h3></div>
<p>C has also been widely used to implement <a href="End-user_(computer_science)" class="mw-redirect" title="End-user (computer science)">end-user</a> applications.<sup id="cite_ref-67" class="reference"><a href="#cite_note-67"><span class="cite-bracket">[</span>61<span class="cite-bracket">]</span></a></sup> However, such applications can also be written in newer, higher-level languages.
</p>
<div class="mw-heading mw-heading2"><h2 id="Limitations">Limitations</h2></div>
<p>Ritchie himself joked about the deficiencies of the language he created:<sup id="cite_ref-68" class="reference"><a href="#cite_note-68"><span class="cite-bracket">[</span>62<span class="cite-bracket">]</span></a></sup>
</p>
<style data-mw-deduplicate="TemplateStyles:r1244412712">
/* start https://en.wikipedia.org/ */
.mw-parser-output .templatequote{overflow:hidden;margin:1em 0;padding:0 32px}.mw-parser-output .templatequotecite{line-height:1.5em;text-align:left;margin-top:0}@media(min-width:500px){.mw-parser-output .templatequotecite{padding-left:1.6em}}
/* end https://en.wikipedia.org/ */
</style><blockquote class="templatequote"><p>the power of assembly language and the convenience of ... assembly language</p></blockquote><div class="templatequotecite"><p style="display: inline; padding-left: 2.3em;">— Dennis Ritchie</p></div>
<p>While C has been popular, influential and hugely successful, it has drawbacks, including:
</p>
<ul><li>The standard <a href="Dynamic_memory" class="mw-redirect" title="Dynamic memory">dynamic memory</a> handling with <code>malloc</code> and <code>free</code> is error prone. Improper use can lead to <a href="Memory_leaks" class="mw-redirect" title="Memory leaks">memory leaks</a> and <a href="Dangling_pointers" class="mw-redirect" title="Dangling pointers">dangling pointers</a>.<sup id="cite_ref-69" class="reference"><a href="#cite_note-69"><span class="cite-bracket">[</span>63<span class="cite-bracket">]</span></a></sup></li>
<li>The use of pointers and the direct manipulation of memory means corruption of memory is possible, perhaps due to programmer error, or insufficient checking of bad data.</li>
<li>There is some <a href="Type_checking" class="mw-redirect" title="Type checking">type checking</a>, but it does not apply to areas like <a href="Variadic_functions" class="mw-redirect" title="Variadic functions">variadic functions</a>, and the type checking can be trivially or inadvertently circumvented. It is <a href="Strong_and_weak_typing" title="Strong and weak typing">weakly typed</a>.</li>
<li>Since the code generated by the compiler contains few checks itself, there is a burden on the programmer to consider all possible outcomes, to protect against buffer overruns, array bounds checking, <a href="Stack_overflow" title="Stack overflow">stack overflows</a>, memory exhaustion, and consider <a href="Race_condition#In_software" title="Race condition">race conditions</a>, thread isolation, etc.</li>
<li>The use of pointers and the run-time manipulation of these means there may be two ways to access the same data (aliasing), which is not determinable at compile time. This means that some optimisations that may be available to other languages are not possible in C. Fortran is considered faster.</li>
<li>Some of the standard library functions, e.g. <code>scanf</code> or <code class="mw-highlight mw-highlight-lang-text mw-content-ltr" style="" dir="ltr">strncat</code>, can lead to <a href="C_standard_library#Buffer_overflow_vulnerabilities" title="C standard library">buffer overruns</a>.</li>
<li>There is limited standardisation in support for low-level variants in generated code, for example: different function <a href="Calling_conventions" class="mw-redirect" title="Calling conventions">calling conventions</a> and <a href="Application_binary_interface" title="Application binary interface">ABI</a>; different <a href="Data_structure_alignment" title="Data structure alignment">structure packing</a> conventions; different byte ordering within larger integers (including endianness). In many language implementations, some of these options may be handled with the preprocessor directive <code><a href="C_preprocessor#Compiler-specific_preprocessor_features" title="C preprocessor">#pragma</a></code>,<sup id="cite_ref-70" class="reference"><a href="#cite_note-70"><span class="cite-bracket">[</span>64<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-71" class="reference"><a href="#cite_note-71"><span class="cite-bracket">[</span>65<span class="cite-bracket">]</span></a></sup> and some with additional keywords e.g. use <code><a href="Cdecl" class="mw-redirect" title="Cdecl">__cdecl</a></code> calling convention. The directive and options are not consistently supported.<sup id="cite_ref-72" class="reference"><a href="#cite_note-72"><span class="cite-bracket">[</span>66<span class="cite-bracket">]</span></a></sup></li>
<li><a href="C_string_handling" title="C string handling">String handling</a> using the standard library is code-intensive, with explicit memory management required.</li>
<li>The language does not directly support object orientation, <a href="Type_introspection" title="Type introspection">introspection</a>, run-time expression evaluation, generics, etc.</li>
<li>There are few guards against inappropriate use of language features, which may lead to <a href="Software_maintenance" title="Software maintenance">unmaintainable</a> code. In particular, the <a href="C_preprocessor" title="C preprocessor">C preprocessor</a> can hide troubling effects such as double evaluation and worse.<sup id="cite_ref-73" class="reference"><a href="#cite_note-73"><span class="cite-bracket">[</span>67<span class="cite-bracket">]</span></a></sup> This facility for tricky code has been celebrated with competitions such as the <i><a href="International_Obfuscated_C_Code_Contest" title="International Obfuscated C Code Contest">International Obfuscated C Code Contest</a></i> and the <i><a href="Underhanded_C_Contest" title="Underhanded C Contest">Underhanded C Contest</a></i>.</li>
<li>C lacks standard support for <a href="Exception_handling" title="Exception handling">exception handling</a> and only offers <a href="Return_code" class="mw-redirect" title="Return code">return codes</a> for error checking. The <a href="Setjmp.h" title="Setjmp.h"><code>setjmp</code> and <code>longjmp</code></a> standard library functions have been used<sup id="cite_ref-74" class="reference"><a href="#cite_note-74"><span class="cite-bracket">[</span>68<span class="cite-bracket">]</span></a></sup> to implement a try-catch mechanism via macros.</li></ul>
<p>For some purposes, restricted styles of C have been adopted, e.g. <a href="MISRA_C" title="MISRA C">MISRA C</a> or <a href="CERT_C" class="mw-redirect" title="CERT C">CERT C</a>, in an attempt to reduce the opportunity for bugs. Databases such as <a href="Common_Weakness_Enumeration" title="Common Weakness Enumeration">CWE</a> attempt to count the ways C etc. has vulnerabilities, along with recommendations for mitigation.
</p><p>There are <a href="#Language_tools">tools</a> that can mitigate against some of the drawbacks. Contemporary C compilers include checks which may generate warnings to help identify many potential bugs.
</p>
<div class="mw-heading mw-heading2"><h2 id="Related_languages">Related languages</h2></div>
<div role="note" class="hatnote navigation-not-searchable">Main article: <a href="List_of_C-family_programming_languages" title="List of C-family programming languages">List of C-family programming languages</a></div>
<p>Many languages developed after C, were influenced by and borrowed aspects of C, including <a href="C%2B%2B" title="C++">C++</a>, <a href="C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a>, <a href="C_shell" title="C shell">C shell</a>, <a href="D_(programming_language)" title="D (programming language)">D</a>, <a href="Go_(programming_language)" title="Go (programming language)">Go</a>, <a href="Java_(programming_language)" title="Java (programming language)">Java</a>, <a href="JavaScript" title="JavaScript">JavaScript</a>, <a href="Julia_(programming_language)" title="Julia (programming language)">Julia</a>, <a href="Limbo_(programming_language)" title="Limbo (programming language)">Limbo</a>, <a href="LPC_(programming_language)" class="mw-redirect" title="LPC (programming language)">LPC</a>, <a href="Objective-C" title="Objective-C">Objective-C</a>, <a href="Perl" title="Perl">Perl</a>, <a href="PHP" title="PHP">PHP</a>, <a href="Python_(programming_language)" title="Python (programming language)">Python</a>, <a href="Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a>, <a href="Rust_(programming_language)" title="Rust (programming language)">Rust</a>, <a href="Swift_(programming_language)" title="Swift (programming language)">Swift</a>, <a href="Verilog" title="Verilog">Verilog</a> and <a href="SystemVerilog" title="SystemVerilog">SystemVerilog</a>.<sup id="cite_ref-vinsp_10-1" class="reference"><a href="#cite_note-vinsp-10"><span class="cite-bracket">[</span>8<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-kafmy_76-0" class="reference"><a href="#cite_note-kafmy-76"><span class="cite-bracket">[</span>70<span class="cite-bracket">]</span></a></sup> Some claim that the most pervasive influence has been syntactical – that these languages combine the statement and expression syntax of C with type systems, data models and large-scale program structures that differ from those of C, sometimes radically.
</p><p>Several C or near-C interpreters exist, including <a href="Ch_(computer_programming)" title="Ch (computer programming)">Ch</a> and <a href="CINT" title="CINT">CINT</a>, which can also be used for scripting.
</p><p>When <a href="Object-oriented_programming" title="Object-oriented programming">object-oriented programming</a> languages became popular, <a href="C%2B%2B" title="C++">C++</a> and <a href="Objective-C" title="Objective-C">Objective-C</a> were two different extensions of C that provided object-oriented capabilities. Both languages were originally implemented as <a href="Source-to-source_compiler" title="Source-to-source compiler">source-to-source compilers</a>; source code was translated into C, and then compiled with a C compiler.<sup id="cite_ref-dSI6f_77-0" class="reference"><a href="#cite_note-dSI6f-77"><span class="cite-bracket">[</span>71<span class="cite-bracket">]</span></a></sup>
</p><p>The <a href="C%2B%2B" title="C++">C++</a> programming language (originally named "C with <a href="Class_(programming)" class="mw-redirect" title="Class (programming)">Classes</a>") was devised by <a href="Bjarne_Stroustrup" title="Bjarne Stroustrup">Bjarne Stroustrup</a> as an approach to providing <a href="Object-oriented_programming" title="Object-oriented programming">object-oriented</a> functionality with a C-like syntax.<sup id="cite_ref-stroustrup_1993_78-0" class="reference"><a href="#cite_note-stroustrup_1993-78"><span class="cite-bracket">[</span>72<span class="cite-bracket">]</span></a></sup> C++ adds greater typing strength, scoping, and other tools useful in object-oriented programming, and permits <a href="Generic_programming" title="Generic programming">generic programming</a> via templates. Nearly a superset of C, C++ now supports most of C, with <a href="Compatibility_of_C_and_C%2B%2B" title="Compatibility of C and C++">a few exceptions</a>.
</p><p><a href="Objective-C" title="Objective-C">Objective-C</a> was originally a thin layer on top of C, and remains a strict <a href="Superset" class="mw-redirect" title="Superset">superset</a> of C that permits object-oriented programming using a hybrid dynamic/static typing paradigm. Objective-C derives its syntax from both C and <a href="Smalltalk" title="Smalltalk">Smalltalk</a>: syntax that involves preprocessing, expressions, function declarations, and function calls is inherited from C, while the syntax for object-oriented features was originally taken from Smalltalk.
</p><p>In addition to <a href="C%2B%2B" title="C++">C++</a> and <a href="Objective-C" title="Objective-C">Objective-C</a>, <a href="Ch_(computer_programming)" title="Ch (computer programming)">Ch</a>, <a href="Cilk" title="Cilk">Cilk</a>, and <a href="Unified_Parallel_C" title="Unified Parallel C">Unified Parallel C</a> are nearly supersets of C.
</p>
<div class="mw-heading mw-heading2"><h2 id="See_also">See also</h2></div>
<ul><li><a href="Compatibility_of_C_and_C%2B%2B" title="Compatibility of C and C++">Compatibility of C and C++</a></li>
<li><a href="Comparison_of_Pascal_and_C" title="Comparison of Pascal and C">Comparison of Pascal and C</a></li>
<li><a href="Comparison_of_programming_languages" title="Comparison of programming languages">Comparison of programming languages</a></li>
<li><a href="International_Obfuscated_C_Code_Contest" title="International Obfuscated C Code Contest">International Obfuscated C Code Contest</a></li>
<li><a href="List_of_C-family_programming_languages" title="List of C-family programming languages">List of C-family programming languages</a></li>
<li><a href="List_of_C_compilers" class="mw-redirect" title="List of C compilers">List of C compilers</a></li></ul>
<div class="mw-heading mw-heading2"><h2 id="Notes">Notes</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239543626">
/* start https://en.wikipedia.org/ */
.mw-parser-output .reflist{margin-bottom:0.5em;list-style-type:decimal}@media screen{.mw-parser-output .reflist{font-size:90%}}.mw-parser-output .reflist .references{font-size:100%;margin-bottom:0;list-style-type:inherit}.mw-parser-output .reflist-columns-2{column-width:30em}.mw-parser-output .reflist-columns-3{column-width:25em}.mw-parser-output .reflist-columns{margin-top:0.3em}.mw-parser-output .reflist-columns ol{margin-top:0}.mw-parser-output .reflist-columns li{page-break-inside:avoid;break-inside:avoid-column}.mw-parser-output .reflist-upper-alpha{list-style-type:upper-alpha}.mw-parser-output .reflist-upper-roman{list-style-type:upper-roman}.mw-parser-output .reflist-lower-alpha{list-style-type:lower-alpha}.mw-parser-output .reflist-lower-greek{list-style-type:lower-greek}.mw-parser-output .reflist-lower-roman{list-style-type:lower-roman}
/* end https://en.wikipedia.org/ */
</style><div class="reflist reflist-lower-alpha">
<div class="mw-references-wrap"><ol class="references">
<li id="cite_note-5"><span class="mw-cite-backlink"><b><a href="#cite_ref-5">^</a></b></span> <span class="reference-text">"Thompson had made a brief attempt to produce a system coded in an early version of C—before structures—in 1972, but gave up the effort."<sup id="cite_ref-FOOTNOTERitchie1993a9_2-0" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a9-2"><span class="cite-bracket">[</span>2<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-FOOTNOTERitchie1993b9_3-0" class="reference"><a href="#cite_note-FOOTNOTERitchie1993b9-3"><span class="cite-bracket">[</span>3<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-FOOTNOTERitchie2003_4-0" class="reference"><a href="#cite_note-FOOTNOTERitchie2003-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-9"><span class="mw-cite-backlink"><b><a href="#cite_ref-9">^</a></b></span> <span class="reference-text">"The scheme of type composition adopted by C owes considerable debt to Algol 68, although it did not, perhaps, emerge in a form that Algol's adherents would approve of."<sup id="cite_ref-FOOTNOTERitchie1993a8_7-0" class="reference"><a href="#cite_note-FOOTNOTERitchie1993a8-7"><span class="cite-bracket">[</span>6<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-FOOTNOTERitchie1993b8_8-0" class="reference"><a href="#cite_note-FOOTNOTERitchie1993b8-8"><span class="cite-bracket">[</span>7<span class="cite-bracket">]</span></a></sup><sup id="cite_ref-FOOTNOTERitchie2003_4-1" class="reference"><a href="#cite_note-FOOTNOTERitchie2003-4"><span class="cite-bracket">[</span>4<span class="cite-bracket">]</span></a></sup> </span>
</li>
<li id="cite_note-12"><span class="mw-cite-backlink"><b><a href="#cite_ref-12">^</a></b></span> <span class="reference-text">Pronounced <span class="rt-commentedText nowrap"><span class="IPA nopopups noexcerpt" lang="en-fonipa">/<span style="border-bottom:1px dotted"><span title="/ˈ/: primary stress follows">ˈ</span><span title="'s' in 'sigh'">s</span><span title="/iː/: 'ee' in 'fleece'">iː</span></span>/</span></span>, like the letter <span class="gloss-quot">'</span><span class="gloss-text"><a href="C" title="C">c</a></span><span class="gloss-quot">'</span>.<sup id="cite_ref-11" class="reference"><a href="#cite_note-11"><span class="cite-bracket">[</span>9<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-22"><span class="mw-cite-backlink"><b><a href="#cite_ref-22">^</a></b></span> <span class="reference-text">The original example code will compile on most modern compilers that are not in strict standard compliance mode, but it does not fully conform to the requirements of either C89 or C99. In fact, C99 requires that a diagnostic message be produced.</span>
</li>
<li id="cite_note-24"><span class="mw-cite-backlink"><b><a href="#cite_ref-24">^</a></b></span> <span class="reference-text">Return value <code>0</code> is typically used in this context to indicate success.<sup id="cite_ref-bk21st_23-0" class="reference"><a href="#cite_note-bk21st-23"><span class="cite-bracket">[</span>19<span class="cite-bracket">]</span></a></sup></span>
</li>
<li id="cite_note-52"><span class="mw-cite-backlink"><b><a href="#cite_ref-52">^</a></b></span> <span class="reference-text">Code of <code>print_array</code> (not shown) slightly differs, too.</span>
</li>
</ol></div></div>
<div class="mw-heading mw-heading2"><h2 id="References">References</h2></div>
<div class="reflist reflist-columns references-column-width" style="column-width: 30em;">
<ol class="references">
<li id="cite_note-C_in_a_Nutshell-1"><span class="mw-cite-backlink">^ <a href="#cite_ref-C_in_a_Nutshell_1-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-C_in_a_Nutshell_1-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><style data-mw-deduplicate="TemplateStyles:r1238218222">
/* start https://en.wikipedia.org/ */
.mw-parser-output cite.citation{font-style:inherit;word-wrap:break-word}.mw-parser-output .citation q{quotes:"\"""\"""'""'"}.mw-parser-output .citation:target{background-color:rgba(0,127,255,0.133)}.mw-parser-output .id-lock-free.id-lock-free a{background:url("./mw/Lock-green.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-limited.id-lock-limited a,.mw-parser-output .id-lock-registration.id-lock-registration a{background:url("./mw/Lock-gray-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .id-lock-subscription.id-lock-subscription a{background:url("./mw/Lock-red-alt-2.svg")right 0.1em center/9px no-repeat}.mw-parser-output .cs1-ws-icon a{background:url("./mw/Wikisource-logo.svg")right 0.1em center/12px no-repeat}body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-free a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-limited a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-registration a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .id-lock-subscription a,body:not(.skin-timeless):not(.skin-minerva) .mw-parser-output .cs1-ws-icon a{background-size:contain;padding:0 1em 0 0}.mw-parser-output .cs1-code{color:inherit;background:inherit;border:none;padding:inherit}.mw-parser-output .cs1-hidden-error{display:none;color:var(--color-error,#d33)}.mw-parser-output .cs1-visible-error{color:var(--color-error,#d33)}.mw-parser-output .cs1-maint{display:none;color:#085;margin-left:0.3em}.mw-parser-output .cs1-kern-left{padding-left:0.2em}.mw-parser-output .cs1-kern-right{padding-right:0.2em}.mw-parser-output .citation .mw-selflink{font-weight:inherit}@media screen{.mw-parser-output .cs1-format{font-size:95%}html.skin-theme-clientpref-night .mw-parser-output .cs1-maint{color:#18911f}}@media screen and (prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .cs1-maint{color:#18911f}}
/* end https://en.wikipedia.org/ */
</style><cite id="CITEREFPrinzCrawford2005" class="citation book cs1">Prinz, Peter; Crawford, Tony (December 16, 2005). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=4Mfe4sAMFUYC"><i>C in a Nutshell</i></a>. O'Reilly Media, Inc. p. 3. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>9780596550714</bdi>.</cite></span>
</li>
<li id="cite_note-FOOTNOTERitchie1993a9-2"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTERitchie1993a9_2-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFRitchie1993a">Ritchie (1993a)</a>, p. 9.</span>
</li>
<li id="cite_note-FOOTNOTERitchie1993b9-3"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTERitchie1993b9_3-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFRitchie1993b">Ritchie (1993b)</a>, p. 9.</span>
</li>
<li id="cite_note-FOOTNOTERitchie2003-4"><span class="mw-cite-backlink">^ <a href="#cite_ref-FOOTNOTERitchie2003_4-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FOOTNOTERitchie2003_4-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFRitchie2003">Ritchie (2003)</a>.</span>
</li>
<li id="cite_note-6"><span class="mw-cite-backlink"><b><a href="#cite_ref-6">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3221.htm">"N3221 – Editor's Report, Post January 2024 Strasbourg France Meeting"</a>. <i>ISO/IEC JTC1/SC22/WG14</i>. Open Standards. February 21, 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">May 24,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-FOOTNOTERitchie1993a8-7"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTERitchie1993a8_7-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFRitchie1993a">Ritchie (1993a)</a>, p. 8.</span>
</li>
<li id="cite_note-FOOTNOTERitchie1993b8-8"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTERitchie1993b8_8-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFRitchie1993b">Ritchie (1993b)</a>, p. 8.</span>
</li>
<li id="cite_note-vinsp-10"><span class="mw-cite-backlink">^ <a href="#cite_ref-vinsp_10-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-vinsp_10-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20131106064022/http://cs.anu.edu.au/courses/ENGN3213/lectures/lecture6_VERILOG_2010.pdf">"Verilog HDL (and C)"</a> <span class="cs1-format">(PDF)</span>. The Research School of Computer Science at the Australian National University. June 3, 2010. Archived from <a rel="nofollow" class="external text" href="http://cs.anu.edu.au/courses/ENGN3213/lectures/lecture6_VERILOG_2010.pdf">the original</a> <span class="cs1-format">(PDF)</span> on November 6, 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">August 19,</span> 2013</span>. <q>1980s: Verilog first introduced; Verilog inspired by the C programming language</q></cite></span>
</li>
<li id="cite_note-11"><span class="mw-cite-backlink"><b><a href="#cite_ref-11">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://eng.ichacha.net/pronounce/the%20c%20programming%20language.html">"The name is based on, and pronounced like the letter C in the English alphabet"</a>. <i>the c programming language sound</i>. English Chinese Dictionary. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20221117151137/https://eng.ichacha.net/pronounce/the%20c%20programming%20language.html">Archived</a> from the original on November 17, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">November 17,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-13"><span class="mw-cite-backlink"><b><a href="#cite_ref-13">^</a></b></span> <span class="reference-text"><cite id="CITEREFMunoz" class="citation web cs1">Munoz, Daniel. <a rel="nofollow" class="external text" href="https://www.toptal.com/c/after-all-these-years-the-world-is-still-powered-by-c-programming">"After All These Years, the World is Still Powered by C Programming | Toptal"</a>. <i>Toptal Engineering Blog</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 15,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-14"><span class="mw-cite-backlink"><b><a href="#cite_ref-14">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20220822225609/https://www.developer.com/news/c-language-drops-to-lowest-popularity-rating/">"C Language Drops to Lowest Popularity Rating"</a>. <i>Developer.com</i>. August 9, 2016. Archived from <a rel="nofollow" class="external text" href="https://www.developer.com/news/c-language-drops-to-lowest-popularity-rating/">the original</a> on August 22, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">August 1,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-FOOTNOTERitchie1993a-15"><span class="mw-cite-backlink">^ <a href="#cite_ref-FOOTNOTERitchie1993a_15-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-FOOTNOTERitchie1993a_15-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-FOOTNOTERitchie1993a_15-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-FOOTNOTERitchie1993a_15-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-FOOTNOTERitchie1993a_15-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-FOOTNOTERitchie1993a_15-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-FOOTNOTERitchie1993a_15-6"><sup><i><b>g</b></i></sup></a></span> <span class="reference-text"><a href="#CITEREFRitchie1993a">Ritchie (1993a)</a>.</span>
</li>
<li id="cite_note-langpop-16"><span class="mw-cite-backlink"><b><a href="#cite_ref-langpop_16-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20090116080326/http://www.langpop.com/">"Programming Language Popularity"</a>. 2009. Archived from <a rel="nofollow" class="external text" href="http://www.langpop.com/">the original</a> on January 16, 2009<span class="reference-accessdate">. Retrieved <span class="nowrap">January 16,</span> 2009</span>.</cite></span>
</li>
<li id="cite_note-TIOBE-2009-17"><span class="mw-cite-backlink"><b><a href="#cite_ref-TIOBE-2009_17-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20090504181627/http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">"TIOBE Programming Community Index"</a>. 2009. Archived from <a rel="nofollow" class="external text" href="http://www.tiobe.com/index.php/content/paperinfo/tpci/index.html">the original</a> on May 4, 2009<span class="reference-accessdate">. Retrieved <span class="nowrap">May 6,</span> 2009</span>.</cite></span>
</li>
<li id="cite_note-ward198308-18"><span class="mw-cite-backlink"><b><a href="#cite_ref-ward198308_18-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFWard1983" class="citation news cs1">Ward, Terry A. (August 1983). <a rel="nofollow" class="external text" href="https://archive.org/stream/byte-magazine-1983-08/1983_08_BYTE_08-08_The_C_Language#page/n267/mode/2up">"Annotated C / A Bibliography of the C Language"</a>. <i>Byte</i>. p. 268<span class="reference-accessdate">. Retrieved <span class="nowrap">January 31,</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-19"><span class="mw-cite-backlink"><b><a href="#cite_ref-19">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.tiobe.com/tiobe-index/">"TIOBE Index for September 2024"</a>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240918165843/https://www.tiobe.com/tiobe-index/">Archived</a> from the original on September 18, 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">September 20,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-20"><span class="mw-cite-backlink"><b><a href="#cite_ref-20">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://sites.google.com/view/energy-efficiency-languages/results">"Original work in SLE'17"</a>.</cite></span>
</li>
<li id="cite_note-FOOTNOTEKernighanRitchie19786-21"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie19786_21-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1978">Kernighan & Ritchie (1978)</a>, p. 6.</span>
</li>
<li id="cite_note-bk21st-23"><span class="mw-cite-backlink">^ <a href="#cite_ref-bk21st_23-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-bk21st_23-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-bk21st_23-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-bk21st_23-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-bk21st_23-4"><sup><i><b>e</b></i></sup></a> <a href="#cite_ref-bk21st_23-5"><sup><i><b>f</b></i></sup></a> <a href="#cite_ref-bk21st_23-6"><sup><i><b>g</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFKlemens2013" class="citation book cs1"><a href="Ben_Klemens" title="Ben Klemens">Klemens, Ben</a> (2013). <i>21st Century C</i>. <a href="O'Reilly_Media" title="O'Reilly Media">O'Reilly Media</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-1-4493-2714-9</bdi>.</cite></span>
</li>
<li id="cite_note-NFDsZ-25"><span class="mw-cite-backlink"><b><a href="#cite_ref-NFDsZ_25-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRitchie" class="citation web cs1">Ritchie, Dennis. <a rel="nofollow" class="external text" href="https://www.lysator.liu.se/c/dmr-on-histories.html">"BCPL to B to C"</a>. <i>lysator.liu.se</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20191212221532/http://www.lysator.liu.se/c/dmr-on-histories.html">Archived</a> from the original on December 12, 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">September 10,</span> 2019</span>.</cite></span>
</li>
<li id="cite_note-Ars-26"><span class="mw-cite-backlink">^ <a href="#cite_ref-Ars_26-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-Ars_26-1"><sup><i><b>b</b></i></sup></a> <a href="#cite_ref-Ars_26-2"><sup><i><b>c</b></i></sup></a> <a href="#cite_ref-Ars_26-3"><sup><i><b>d</b></i></sup></a> <a href="#cite_ref-Ars_26-4"><sup><i><b>e</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFJensen2020" class="citation web cs1">Jensen, Richard (December 9, 2020). <a rel="nofollow" class="external text" href="https://arstechnica.com/features/2020/12/a-damn-stupid-thing-to-do-the-origins-of-c/">""A damn stupid thing to do"—the origins of C"</a>. <i>Ars Technica</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220328143845/https://arstechnica.com/features/2020/12/a-damn-stupid-thing-to-do-the-origins-of-c/">Archived</a> from the original on March 28, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">March 28,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-unixport-27"><span class="mw-cite-backlink">^ <a href="#cite_ref-unixport_27-0"><sup><i><b>a</b></i></sup></a> <a href="#cite_ref-unixport_27-1"><sup><i><b>b</b></i></sup></a></span> <span class="reference-text"><cite id="CITEREFJohnsonRitchie1978" class="citation journal cs1"><a href="Stephen_C._Johnson" title="Stephen C. Johnson">Johnson, S. C.</a>; <a href="Dennis_Ritchie" title="Dennis Ritchie">Ritchie, D. M.</a> (1978). "Portability of C Programs and the UNIX System". <i>Bell System Tech. J</i>. <b>57</b> (6): <span class="nowrap">2021–</span>2048. <a href="CiteSeerX_(identifier)" class="mw-redirect" title="CiteSeerX (identifier)">CiteSeerX</a> <span class="id-lock-free" title="Freely accessible"><a rel="nofollow" class="external text" href="https://citeseerx.ist.psu.edu/viewdoc/summary?doi=10.1.1.138.35">10.1.1.138.35</a></span>. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1002%2Fj.1538-7305.1978.tb02141.x">10.1002/j.1538-7305.1978.tb02141.x</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0005-8580">0005-8580</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a> <a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:17510065">17510065</a>.</cite> (Note: The PDF is an OCR scan of the original, and contains a rendering of "IBM 370" as "IBM 310".)</span>
</li>
<li id="cite_note-QtqTh-28"><span class="mw-cite-backlink"><b><a href="#cite_ref-QtqTh_28-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMcIlroy1987" class="citation techreport cs1"><a href="Doug_McIlroy" class="mw-redirect" title="Doug McIlroy">McIlroy, M. D.</a> (1987). <a rel="nofollow" class="external text" href="http://www.cs.dartmouth.edu/~doug/reader.pdf"><i>A Research Unix reader: annotated excerpts from the Programmer's Manual, 1971–1986</i></a> <span class="cs1-format">(PDF)</span> (Technical report). CSTR. Bell Labs. p. 10. 139. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20171111151817/http://www.cs.dartmouth.edu/~doug/reader.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on November 11, 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">February 1,</span> 2015</span>.</cite></span>
</li>
<li id="cite_note-FOOTNOTEKernighanRitchie1978-29"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie1978_29-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1978">Kernighan & Ritchie (1978)</a>.</span>
</li>
<li id="cite_note-qOvzA-30"><span class="mw-cite-backlink"><b><a href="#cite_ref-qOvzA_30-0">^</a></b></span> <span class="reference-text"><cite class="citation book cs1">"C manual pages". <a rel="nofollow" class="external text" href="https://nxmnpg.lemoda.net/7/c78"><i>FreeBSD Miscellaneous Information Manual</i></a> (FreeBSD 13.0 ed.). May 30, 2011. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210121024455/https://nxmnpg.lemoda.net/7/c78">Archived</a> from the original on January 21, 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">January 15,</span> 2021</span>.</cite> <a rel="nofollow" class="external autonumber" href="https://www.freebsd.org/cgi/man.cgi?query=c78&apropos=0&sektion=0&manpath=FreeBSD+9-current&arch=default&format=html">[1]</a> <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210121033654/https://www.freebsd.org/cgi/man.cgi?query=c78&apropos=0&sektion=0&manpath=FreeBSD+9-current&arch=default&format=html">Archived</a> January 21, 2021, at the <a href="Wayback_Machine" title="Wayback Machine">Wayback Machine</a></span>
</li>
<li id="cite_note-FOOTNOTEKernighanRitchie1988-31"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie1988_31-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1988">Kernighan & Ritchie (1988)</a>.</span>
</li>
<li id="cite_note-SkKfZ-32"><span class="mw-cite-backlink"><b><a href="#cite_ref-SkKfZ_32-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStroustrup2002" class="citation report cs1"><a href="Bjarne_Stroustrup" title="Bjarne Stroustrup">Stroustrup, Bjarne</a> (2002). <a rel="nofollow" class="external text" href="http://stroustrup.com/sibling_rivalry.pdf">Sibling rivalry: C and C++</a> <span class="cs1-format">(PDF)</span> (Report). AT&T Labs. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20140824072719/http://www.stroustrup.com/sibling_rivalry.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on August 24, 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">April 14,</span> 2014</span>.</cite></span>
</li>
<li id="cite_note-33"><span class="mw-cite-backlink"><b><a href="#cite_ref-33">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20240717164722/https://www.cs.man.ac.uk/~pjj/cs211/c_rationale/node2.html">"Rationale for American National Standard for Information Systems – Programming Language – C"</a>. Archived from <a rel="nofollow" class="external text" href="https://www.cs.man.ac.uk/~pjj/cs211/c_rationale/node2.html">the original</a> on July 17, 2024<span class="reference-accessdate">. Retrieved <span class="nowrap">July 17,</span> 2024</span>.</cite></span>
</li>
<li id="cite_note-NWUon-34"><span class="mw-cite-backlink"><b><a href="#cite_ref-NWUon_34-0">^</a></b></span> <span class="reference-text"><cite class="citation book cs1"><a rel="nofollow" class="external text" href="https://www.iso.org/standard/23909.html"><i>C Integrity</i></a>. International Organization for Standardization. March 30, 1995. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180725033429/https://www.iso.org/standard/23909.html">Archived</a> from the original on July 25, 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">July 24,</span> 2018</span>.</cite></span>
</li>
<li id="cite_note-WG14-35"><span class="mw-cite-backlink"><b><a href="#cite_ref-WG14_35-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.open-std.org/jtc1/sc22/wg14/">"JTC1/SC22/WG14 – C"</a>. <i>Home page</i>. ISO/IEC. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20180212100115/http://www.open-std.org/JTC1/SC22/WG14/">Archived</a> from the original on February 12, 2018<span class="reference-accessdate">. Retrieved <span class="nowrap">June 2,</span> 2011</span>.</cite></span>
</li>
<li id="cite_note-YTKIv-36"><span class="mw-cite-backlink"><b><a href="#cite_ref-YTKIv_36-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFAndrew_Binstock2011" class="citation web cs1">Andrew Binstock (October 12, 2011). <a rel="nofollow" class="external text" href="http://www.drdobbs.com/cpp/interview-with-herb-sutter/231900562">"Interview with Herb Sutter"</a>. <i><a href="Dr._Dobbs" class="mw-redirect" title="Dr. Dobbs">Dr. Dobbs</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130802070446/http://www.drdobbs.com/cpp/interview-with-herb-sutter/231900562">Archived</a> from the original on August 2, 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">September 7,</span> 2013</span>.</cite></span>
</li>
<li id="cite_note-37"><span class="mw-cite-backlink"><b><a href="#cite_ref-37">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf">"ISO/IEC 9899:2024 (en) — N3220 working draft"</a> <span class="cs1-format">(PDF)</span><span class="reference-accessdate">. Retrieved <span class="nowrap">July 11,</span> 2025</span>.</cite></span>
</li>
<li id="cite_note-N3132-38"><span class="mw-cite-backlink"><b><a href="#cite_ref-N3132_38-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3132.pdf">"WG14-N3132 : Revised C23 Schedule"</a> <span class="cs1-format">(PDF)</span>. <i>open-std.org</i>. June 4, 2023. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20230609204739/https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3132.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on June 9, 2023.</cite></span>
</li>
<li id="cite_note-N3220-39"><span class="mw-cite-backlink"><b><a href="#cite_ref-N3220_39-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf">"WG14-N3220 : Working Draft, C2y"</a> <span class="cs1-format">(PDF)</span>. <i>open-std.org</i>. February 21, 2024. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20240226053735/https://www.open-std.org/jtc1/sc22/wg14/www/docs/n3220.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on February 26, 2024.</cite></span>
</li>
<li id="cite_note-TR18037-40"><span class="mw-cite-backlink"><b><a href="#cite_ref-TR18037_40-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf">"TR 18037: Embedded C"</a> <span class="cs1-format">(PDF)</span>. <i>open-std.org</i>. April 4, 2006. ISO/IEC JTC1 SC22 WG14 N1169. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20210225224616/https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1169.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on February 25, 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">July 26,</span> 2011</span>.</cite></span>
</li>
<li id="cite_note-h&s5e-41"><span class="mw-cite-backlink"><b><a href="#cite_ref-h&s5e_41-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFHarbisonSteele2002" class="citation book cs1">Harbison, Samuel P.; <a href="Guy_L._Steele%2C_Jr." class="mw-redirect" title="Guy L. Steele, Jr.">Steele, Guy L.</a> (2002). <i>C: A Reference Manual</i> (5th ed.). <a href="Englewood_Cliffs%2C_NJ" class="mw-redirect" title="Englewood Cliffs, NJ">Englewood Cliffs, NJ</a>: <a href="Prentice_Hall" title="Prentice Hall">Prentice Hall</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0-13-089592-9</bdi>.</cite> Contains a <a href="Backus-Naur_form" class="mw-redirect" title="Backus-Naur form">BNF</a> grammar for C.</span>
</li>
<li id="cite_note-FOOTNOTEKernighanRitchie1988192-42"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie1988192_42-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1988">Kernighan & Ritchie (1988)</a>, p. 192.</span>
</li>
<li id="cite_note-FOOTNOTEKernighanRitchie19783-43"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie19783_43-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1978">Kernighan & Ritchie (1978)</a>, p. 3.</span>
</li>
<li id="cite_note-ISOIEC_9899-44"><span class="mw-cite-backlink"><b><a href="#cite_ref-ISOIEC_9899_44-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf">"ISO/IEC 9899:201x (ISO C11) Committee Draft"</a> <span class="cs1-format">(PDF)</span>. <i>open-std.org</i>. December 2, 2010. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20171222215122/http://www.open-std.org/jtc1/sc22/wg14/www/docs/n1548.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on December 22, 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">September 16,</span> 2011</span>.</cite></span>
</li>
<li id="cite_note-FOOTNOTEKernighanRitchie1988192,_259-45"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie1988192,_259_45-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1988">Kernighan & Ritchie (1988)</a>, pp. 192, 259.</span>
</li>
<li id="cite_note-AutoTX-8-46"><span class="mw-cite-backlink"><b><a href="#cite_ref-AutoTX-8_46-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.cs.ucr.edu/~nxiao/cs10/errors.htm">"10 Common Programming Mistakes in C++"</a>. <i>Cs.ucr.edu</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20081021080953/http://www.cs.ucr.edu/~nxiao/cs10/errors.htm">Archived</a> from the original on October 21, 2008<span class="reference-accessdate">. Retrieved <span class="nowrap">June 26,</span> 2009</span>.</cite></span>
</li>
<li id="cite_note-AutoTX-9-47"><span class="mw-cite-backlink"><b><a href="#cite_ref-AutoTX-9_47-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFSchultz2004" class="citation book cs1">Schultz, Thomas (2004). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=rI0c8kWbxooC&pg=PT47"><i>C and the 8051</i></a> (3rd ed.). Otsego, MI: PageFree Publishing Inc. p. 20. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-1-58961-237-2</bdi><span class="reference-accessdate">. Retrieved <span class="nowrap">February 10,</span> 2012</span>.</cite></span>
</li>
<li id="cite_note-Nmlwr-48"><span class="mw-cite-backlink"><b><a href="#cite_ref-Nmlwr_48-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFFeuerGehani1982" class="citation journal cs1">Feuer, Alan R.; Gehani, Narain H. (March 1982). "Comparison of the Programming Languages C and Pascal". <i>ACM Computing Surveys</i>. <b>14</b> (1): <span class="nowrap">73–</span>92. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F356869.356872">10.1145/356869.356872</a>. <a href="S2CID_(identifier)" class="mw-redirect" title="S2CID (identifier)">S2CID</a> <a rel="nofollow" class="external text" href="https://api.semanticscholar.org/CorpusID:3136859">3136859</a>.</cite></span>
</li>
<li id="cite_note-FOOTNOTEKernighanRitchie1988122-49"><span class="mw-cite-backlink"><b><a href="#cite_ref-FOOTNOTEKernighanRitchie1988122_49-0">^</a></b></span> <span class="reference-text"><a href="#CITEREFKernighanRitchie1988">Kernighan & Ritchie (1988)</a>, p. 122.</span>
</li>
<li id="cite_note-fedoraproject-50"><span class="mw-cite-backlink"><b><a href="#cite_ref-fedoraproject_50-0">^</a></b></span> <span class="reference-text">For example, gcc provides _FORTIFY_SOURCE. <cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://fedoraproject.org/wiki/Security/Features">"Security Features: Compile Time Buffer Checks (FORTIFY_SOURCE)"</a>. fedoraproject.org. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20070107153447/http://fedoraproject.org/wiki/Security/Features">Archived</a> from the original on January 7, 2007<span class="reference-accessdate">. Retrieved <span class="nowrap">August 5,</span> 2012</span>.</cite></span>
</li>
<li id="cite_note-Programming_with_C-51"><span class="mw-cite-backlink"><b><a href="#cite_ref-Programming_with_C_51-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFเอี่ยมสิริวงศ์2016" class="citation book cs1">เอี่ยมสิริวงศ์, โอภาศ (2016). <i>Programming with C</i>. Bangkok, Thailand: SE-EDUCATION PUBLIC COMPANY LIMITED. pp. <span class="nowrap">225–</span>230. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-616-08-2740-4</bdi>.</cite></span>
</li>
<li id="cite_note-Raymond1996-53"><span class="mw-cite-backlink"><b><a href="#cite_ref-Raymond1996_53-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRaymond1996" class="citation book cs1"><a href="Eric_S._Raymond" title="Eric S. Raymond">Raymond, Eric S.</a> (October 11, 1996). <a rel="nofollow" class="external text" href="https://books.google.com/books?id=g80P_4v4QbIC&pg=PA432"><i>The New Hacker's Dictionary</i></a> (3rd ed.). MIT Press. p. 432. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0-262-68092-9</bdi><span class="reference-accessdate">. Retrieved <span class="nowrap">August 5,</span> 2012</span>.</cite></span>
</li>
<li id="cite_note-MI2L0-54"><span class="mw-cite-backlink"><b><a href="#cite_ref-MI2L0_54-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.unix.com/man-page/FreeBSD/1/lint">"Man Page for lint (freebsd Section 1)"</a>. <i>unix.com</i>. May 24, 2001<span class="reference-accessdate">. Retrieved <span class="nowrap">July 15,</span> 2014</span>.</cite></span>
</li>
<li id="cite_note-55"><span class="mw-cite-backlink"><b><a href="#cite_ref-55">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.stanford.edu/class/archive/cs/cs107/cs107.1236/resources/valgrind.html">"CS107 Valgrind Memcheck"</a>. <i>web.stanford.edu</i><span class="reference-accessdate">. Retrieved <span class="nowrap">June 23,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-56"><span class="mw-cite-backlink"><b><a href="#cite_ref-56">^</a></b></span> <span class="reference-text"><cite id="CITEREFHastingsJoyce" class="citation journal cs1">Hastings, Reed; Joyce, Bob. <a rel="nofollow" class="external text" href="https://web.stanford.edu/class/cs343/resources/purify.pdf">"Purify: Fast Detection of Memory Leaks and Access Errors"</a> <span class="cs1-format">(PDF)</span>. <i>Pure Software Inc.</i>: 9.</cite></span>
</li>
<li id="cite_note-Zh3CW-57"><span class="mw-cite-backlink"><b><a href="#cite_ref-Zh3CW_57-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFDaleWeems2014" class="citation book cs1">Dale, Nell B.; Weems, Chip (2014). <i>Programming and problem solving with C++</i> (6th ed.). Burlington, Massachusetts: Jones & Bartlett Learning. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-1449694289</bdi>. <a href="OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/894992484">894992484</a>.</cite></span>
</li>
<li id="cite_note-58"><span class="mw-cite-backlink"><b><a href="#cite_ref-58">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://doomwiki.org/wiki/Development_of_Doom">"Development of Doom"</a>. <i>DoomWiki.org</i>. March 2, 2025<span class="reference-accessdate">. Retrieved <span class="nowrap">March 2,</span> 2025</span>.</cite></span>
</li>
<li id="cite_note-59"><span class="mw-cite-backlink"><b><a href="#cite_ref-59">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://web.archive.org/web/20210531161841/https://ict.iitk.ac.in/c-the-mother-of-all-languages/">"C – the mother of all languages"</a>. <i>ICT Academy at IITK</i>. November 13, 2018. Archived from <a rel="nofollow" class="external text" href="https://ict.iitk.ac.in/c-the-mother-of-all-languages/">the original</a> on May 31, 2021<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-60"><span class="mw-cite-backlink"><b><a href="#cite_ref-60">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://docs.python.org/3/extending/extending.html">"1. Extending Python with C or C++"</a>. <i>Python 3.10.7 documentation</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20121105232707/https://docs.python.org/3/extending/extending.html">Archived</a> from the original on November 5, 2012<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-61"><span class="mw-cite-backlink"><b><a href="#cite_ref-61">^</a></b></span> <span class="reference-text"><cite id="CITEREFConrad2018" class="citation web cs1">Conrad, Michael (January 22, 2018). <a rel="nofollow" class="external text" href="https://opensource.com/article/18/1/perl-5-engine">"An overview of the Perl 5 engine"</a>. <i>Opensource.com</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220526105419/https://opensource.com/article/18/1/perl-5-engine">Archived</a> from the original on May 26, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-62"><span class="mw-cite-backlink"><b><a href="#cite_ref-62">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/">"To Ruby From C and C++"</a>. <i>Ruby Programming Language</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20130812003928/https://www.ruby-lang.org/en/documentation/ruby-from-other-languages/to-ruby-from-c-and-cpp/">Archived</a> from the original on August 12, 2013<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-63"><span class="mw-cite-backlink"><b><a href="#cite_ref-63">^</a></b></span> <span class="reference-text"><cite id="CITEREFPara2022" class="citation web cs1">Para, Michael (August 3, 2022). <a rel="nofollow" class="external text" href="https://www.freecodecamp.org/news/what-is-php-write-your-first-php-program/">"What is PHP? How to Write Your First PHP Program"</a>. <i>freeCodeCamp</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220804050401/https://www.freecodecamp.org/news/what-is-php-write-your-first-php-program/">Archived</a> from the original on August 4, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">October 11,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-Dobbs_1995-64"><span class="mw-cite-backlink"><b><a href="#cite_ref-Dobbs_1995_64-0">^</a></b></span> <span class="reference-text"><cite class="citation book cs1"><i>Dr. Dobb's Sourcebook</i>. U.S.: Miller Freeman, Inc. November–December 1995.</cite></span>
</li>
<li id="cite_note-linuxjournal_2005-65"><span class="mw-cite-backlink"><b><a href="#cite_ref-linuxjournal_2005_65-0">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="http://www.linuxjournal.com/article/6863">"Using C for CGI Programming"</a>. linuxjournal.com. March 1, 2005. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20100213075858/http://www.linuxjournal.com/article/6863">Archived</a> from the original on February 13, 2010<span class="reference-accessdate">. Retrieved <span class="nowrap">January 4,</span> 2010</span>.</cite></span>
</li>
<li id="cite_note-66"><span class="mw-cite-backlink"><b><a href="#cite_ref-66">^</a></b></span> <span class="reference-text"><cite id="CITEREFPerkins2013" class="citation web cs1">Perkins, Luc (September 17, 2013). <a rel="nofollow" class="external text" href="https://medium.com/@lucperkins/web-development-in-c-crazy-or-crazy-like-a-fox-ff723209f8f5">"Web development in C: crazy? Or crazy like a fox?"</a>. <i>Medium</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20141004135317/https://medium.com/@lucperkins/web-development-in-c-crazy-or-crazy-like-a-fox-ff723209f8f5">Archived</a> from the original on October 4, 2014<span class="reference-accessdate">. Retrieved <span class="nowrap">April 8,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-67"><span class="mw-cite-backlink"><b><a href="#cite_ref-67">^</a></b></span> <span class="reference-text"><cite id="CITEREFMunoz" class="citation web cs1">Munoz, Daniel. <a rel="nofollow" class="external text" href="https://www.toptal.com/c/after-all-these-years-the-world-is-still-powered-by-c-programming">"After All These Years, the World is Still Powered by C Programming"</a>. <i>Toptal Engineering Blog</i><span class="reference-accessdate">. Retrieved <span class="nowrap">November 17,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-68"><span class="mw-cite-backlink"><b><a href="#cite_ref-68">^</a></b></span> <span class="reference-text"><cite id="CITEREFMetz2011" class="citation magazine cs1">Metz, Cade (October 13, 2011). <span class="id-lock-subscription" title="Paid subscription required"><a rel="nofollow" class="external text" href="https://www.wired.com/2011/10/thedennisritchieeffect/">"Dennis Ritchie: The Shoulders Steve Jobs Stood On"</a></span>. <i>Wired</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220412005125/http://www.wired.com/2011/10/thedennisritchieeffect/">Archived</a> from the original on April 12, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">April 19,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-69"><span class="mw-cite-backlink"><b><a href="#cite_ref-69">^</a></b></span> <span class="reference-text"><cite id="CITEREFInternet_Security_Research_Group" class="citation web cs1">Internet Security Research Group. <a rel="nofollow" class="external text" href="https://www.memorysafety.org/docs/memory-safety/">"What is memory safety and why does it matter?"</a>. <i>Prossimo</i><span class="reference-accessdate">. Retrieved <span class="nowrap">March 3,</span> 2025</span>.</cite></span>
</li>
<li id="cite_note-70"><span class="mw-cite-backlink"><b><a href="#cite_ref-70">^</a></b></span> <span class="reference-text"><cite id="CITEREFcorob-msft2022" class="citation web cs1">corob-msft (March 31, 2022). <a rel="nofollow" class="external text" href="https://learn.microsoft.com/en-us/cpp/preprocessor/pragma-directives-and-the-pragma-keyword">"Pragma directives and the __pragma and _Pragma keywords"</a>. <i>Microsoft Learn</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220924075131/https://learn.microsoft.com/en-us/cpp/preprocessor/pragma-directives-and-the-pragma-keyword">Archived</a> from the original on September 24, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">September 24,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-71"><span class="mw-cite-backlink"><b><a href="#cite_ref-71">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html">"Pragmas (The C Preprocessor)"</a>. <i>GCC, the GNU Compiler Collection</i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20020617041757/https://gcc.gnu.org/onlinedocs/cpp/Pragmas.html">Archived</a> from the original on June 17, 2002<span class="reference-accessdate">. Retrieved <span class="nowrap">September 24,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-72"><span class="mw-cite-backlink"><b><a href="#cite_ref-72">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas.html">"Pragmas"</a>. <i>Intel C++ Compiler Classic Developer Guide and Reference</i>. Intel. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20220410113529/https://www.intel.com/content/www/us/en/develop/documentation/cpp-compiler-developer-guide-and-reference/top/compiler-reference/pragmas.html">Archived</a> from the original on April 10, 2022<span class="reference-accessdate">. Retrieved <span class="nowrap">April 10,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-73"><span class="mw-cite-backlink"><b><a href="#cite_ref-73">^</a></b></span> <span class="reference-text"><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://apenwarr.ca/log/20070813">"In praise of the C preprocessor"</a>. <i>apenwarr</i>. August 13, 2007<span class="reference-accessdate">. Retrieved <span class="nowrap">July 9,</span> 2023</span>.</cite></span>
</li>
<li id="cite_note-74"><span class="mw-cite-backlink"><b><a href="#cite_ref-74">^</a></b></span> <span class="reference-text"><cite id="CITEREFRoberts1989" class="citation web cs1">Roberts, Eric S. (March 21, 1989). <a rel="nofollow" class="external text" href="http://bitsavers.informatik.uni-stuttgart.de/pdf/dec/tech_reports/SRC-RR-40.pdf">"Implementing Exceptions in C"</a> <span class="cs1-format">(PDF)</span>. <a href="DEC_Systems_Research_Center" title="DEC Systems Research Center">DEC Systems Research Center</a>. SRC-RR-40. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20170115152453/http://bitsavers.informatik.uni-stuttgart.de/pdf/dec/tech_reports/SRC-RR-40.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on January 15, 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">January 4,</span> 2022</span>.</cite></span>
</li>
<li id="cite_note-MmjNC-75"><span class="mw-cite-backlink"><b><a href="#cite_ref-MmjNC_75-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFMcMillan2013" class="citation magazine cs1">McMillan, Robert (August 1, 2013). <a rel="nofollow" class="external text" href="https://www.wired.com/2013/01/java-no-longer-a-favorite/">"Is Java Losing Its Mojo?"</a>. <i><a href="Wired_(magazine)" title="Wired (magazine)">Wired</a></i>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20170215115409/https://www.wired.com/2013/01/java-no-longer-a-favorite/">Archived</a> from the original on February 15, 2017<span class="reference-accessdate">. Retrieved <span class="nowrap">March 5,</span> 2017</span>.</cite></span>
</li>
<li id="cite_note-kafmy-76"><span class="mw-cite-backlink"><b><a href="#cite_ref-kafmy_76-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFO'Regan2015" class="citation book cs1">O'Regan, Gerard (September 24, 2015). <i>Pillars of computing : a compendium of select, pivotal technology firms</i>. Springer. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-3319214641</bdi>. <a href="OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/922324121">922324121</a>.</cite></span>
</li>
<li id="cite_note-dSI6f-77"><span class="mw-cite-backlink"><b><a href="#cite_ref-dSI6f_77-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFRauchwerger2004" class="citation book cs1">Rauchwerger, Lawrence (2004). <i>Languages and compilers for parallel computing : 16th international workshop, LCPC 2003, College Station, TX, USA, October 2–4, 2003 : revised papers</i>. Springer. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-3540246442</bdi>. <a href="OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/57965544">57965544</a>.</cite></span>
</li>
<li id="cite_note-stroustrup_1993-78"><span class="mw-cite-backlink"><b><a href="#cite_ref-stroustrup_1993_78-0">^</a></b></span> <span class="reference-text"><cite id="CITEREFStroustrup1993" class="citation web cs1"><a href="Bjarne_Stroustrup" title="Bjarne Stroustrup">Stroustrup, Bjarne</a> (1993). <a rel="nofollow" class="external text" href="http://www.stroustrup.com/hopl2.pdf">"A History of C++: 1979–1991"</a> <span class="cs1-format">(PDF)</span>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20190202050609/http://www.stroustrup.com/hopl2.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on February 2, 2019<span class="reference-accessdate">. Retrieved <span class="nowrap">June 9,</span> 2011</span>.</cite></span>
</li>
</ol></div>
<div class="mw-heading mw-heading2"><h2 id="Sources">Sources</h2></div>
<style data-mw-deduplicate="TemplateStyles:r1239549316">
/* start https://en.wikipedia.org/ */
.mw-parser-output .refbegin{margin-bottom:0.5em}.mw-parser-output .refbegin-hanging-indents>ul{margin-left:0}.mw-parser-output .refbegin-hanging-indents>ul>li{margin-left:0;padding-left:3.2em;text-indent:-3.2em}.mw-parser-output .refbegin-hanging-indents ul,.mw-parser-output .refbegin-hanging-indents ul li{list-style:none}@media(max-width:720px){.mw-parser-output .refbegin-hanging-indents>ul>li{padding-left:1.6em;text-indent:-1.6em}}.mw-parser-output .refbegin-columns{margin-top:0.3em}.mw-parser-output .refbegin-columns ul{margin-top:0}.mw-parser-output .refbegin-columns li{page-break-inside:avoid;break-inside:avoid-column}@media screen{.mw-parser-output .refbegin{font-size:90%}}
/* end https://en.wikipedia.org/ */
</style><div class="refbegin refbegin-hanging-indents refbegin-columns references-column-width" style="column-width: 30em">
<ul><li><cite id="CITEREFKernighanRitchie1978" class="citation book cs1"><a href="Brian_Kernighan" title="Brian Kernighan">Kernighan, Brian W.</a>; <a href="Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (1978). <a rel="nofollow" class="external text" href="https://archive.org/details/cprogramminglang00kern/page/n2"><i>The C Programming Language</i></a> (1st ed.). Englewood Cliffs: <a href="Prentice_Hall" title="Prentice Hall">Prentice Hall</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0-13-110163-0</bdi>. <a href="LCCN_(identifier)" class="mw-redirect" title="LCCN (identifier)">LCCN</a> <a rel="nofollow" class="external text" href="https://lccn.loc.gov/77028983">77028983</a>. <a href="OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/3608698">3608698</a>. <a href="OL_(identifier)" class="mw-redirect" title="OL (identifier)">OL</a> <a rel="nofollow" class="external text" href="https://openlibrary.org/books/OL4558528M">4558528M</a>. <a href="WDQ_(identifier)" class="mw-redirect" title="WDQ (identifier)">Wikidata</a> <a href="https://www.wikidata.org/wiki/Q63565563" class="extiw external" title="d:Q63565563">Q63565563</a>.</cite></li>
<li><cite id="CITEREFKernighanRitchie1988" class="citation book cs1"><a href="Brian_Kernighan" title="Brian Kernighan">Kernighan, Brian W.</a>; <a href="Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (1988). <a rel="nofollow" class="external text" href="https://archive.org/details/cprogramminglang00bria/page/n4"><i>The C Programming Language</i></a> (2nd ed.). Upper Saddle River: <a href="Prentice_Hall" title="Prentice Hall">Prentice Hall</a>. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0-13-110362-7</bdi>. <a href="LCCN_(identifier)" class="mw-redirect" title="LCCN (identifier)">LCCN</a> <a rel="nofollow" class="external text" href="https://lccn.loc.gov/88005934">88005934</a>. <a href="OCLC_(identifier)" class="mw-redirect" title="OCLC (identifier)">OCLC</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/oclc/254455874">254455874</a>. <a href="OL_(identifier)" class="mw-redirect" title="OL (identifier)">OL</a> <a rel="nofollow" class="external text" href="https://openlibrary.org/books/OL2030445M">2030445M</a>. <a href="WDQ_(identifier)" class="mw-redirect" title="WDQ (identifier)">Wikidata</a> <a href="https://www.wikidata.org/wiki/Q63413168" class="extiw external" title="d:Q63413168">Q63413168</a>.</cite></li>
<li><cite id="CITEREFRitchie1993a" class="citation journal cs1"><a href="Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (March 1993a). <a href="Richard_Wexelblat" title="Richard Wexelblat">Wexelblat, Richard L.</a> (ed.). <a rel="nofollow" class="external text" href="https://dl.acm.org/doi/10.1145/155360.155580">"The Development of the C Language"</a>. <i>ACM SIGPLAN Notices</i>. <b>28</b> (3). New York City: <a href="Association_for_Computing_Machinery" title="Association for Computing Machinery">Association for Computing Machinery</a>: <span class="nowrap">201–</span>208. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F155360.155580">10.1145/155360.155580</a>. <a href="ISSN_(identifier)" class="mw-redirect" title="ISSN (identifier)">ISSN</a> <a rel="nofollow" class="external text" href="https://search.worldcat.org/issn/0362-1340">0362-1340</a>. <a href="WDQ_(identifier)" class="mw-redirect" title="WDQ (identifier)">Wikidata</a> <a href="https://www.wikidata.org/wiki/Q55869040" class="extiw external" title="d:Q55869040">Q55869040</a>.</cite></li>
<li><cite id="CITEREFRitchie1993b" class="citation journal cs1"><a href="Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (1993b). Bergin, Thomas J.; Gibson, Richard G. (eds.). <a rel="nofollow" class="external text" href="https://dl.acm.org/doi/10.1145/154766.155580">"The Development of the C Language"</a>. <i>The Second ACM SIGPLAN Conference on History of Programming Languages (HOPL-II)</i>. New York City: <a href="Association_for_Computing_Machinery" title="Association for Computing Machinery">Association for Computing Machinery</a>: <span class="nowrap">201–</span>208. <a href="Doi_(identifier)" class="mw-redirect" title="Doi (identifier)">doi</a>:<a rel="nofollow" class="external text" href="https://doi.org/10.1145%2F154766.155580">10.1145/154766.155580</a>. <a href="WDQ_(identifier)" class="mw-redirect" title="WDQ (identifier)">Wikidata</a> <a href="https://www.wikidata.org/wiki/Q29392176" class="extiw external" title="d:Q29392176">Q29392176</a>.</cite></li>
<li><cite id="CITEREFRitchie2003" class="citation cs1"><a href="Dennis_Ritchie" title="Dennis Ritchie">Ritchie, Dennis M.</a> (2003) [1993]. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20250130134200/https://www.bell-labs.com/usr/dmr/www/chist.html"><i>The Development of the C Language</i></a>. <a href="Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a>. <a href="WDQ_(identifier)" class="mw-redirect" title="WDQ (identifier)">Wikidata</a> <a href="https://www.wikidata.org/wiki/Q134885774" class="extiw external" title="d:Q134885774">Q134885774</a>. Archived from <a rel="nofollow" class="external text" href="https://www.bell-labs.com/usr/dmr/www/chist.html">the original</a> on January 30, 2025 – via Bell Labs/Lucent Technologies.</cite></li></ul>
</div>
<div class="mw-heading mw-heading2"><h2 id="Further_reading">Further reading</h2></div>
<div class="refbegin refbegin-hanging-indents refbegin-columns references-column-width" style="column-width: 30em">
<ul><li><cite id="CITEREFPlauger1992" class="citation book cs1"><a href="P._J._Plauger" title="P. J. Plauger">Plauger, P.J.</a> (1992). <i>The Standard C Library</i> (1 ed.). Prentice Hall. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0131315099</bdi>.</cite> <small><a rel="nofollow" class="external text" href="https://github.com/wuzhouhui/c_standard_lib"><i>(source)</i></a></small></li>
<li><cite id="CITEREFBanahanBradyDoran1991" class="citation book cs1">Banahan, M.; Brady, D.; Doran, M. (1991). <i>The C Book: Featuring the ANSI C Standard</i> (2 ed.). Addison-Wesley. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0201544336</bdi>.</cite> <small><a rel="nofollow" class="external text" href="https://github.com/wardvanwanrooij/thecbook"><i>(free)</i></a></small></li>
<li><cite id="CITEREFFeuer1985" class="citation book cs1">Feuer, Alan R. (1985). <i>The C Puzzle Book</i> (1 ed.). Prentice Hall. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>0131099345</bdi>.</cite></li>
<li><cite id="CITEREFHarbisonSteele2002" class="citation book cs1">Harbison, Samuel; Steele, Guy Jr. (2002). <i>C: A Reference Manual</i> (5 ed.). Pearson. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0130895929</bdi>.</cite> <small><a rel="nofollow" class="external text" href="https://archive.org/details/creferencemanual00harb"><i>(archive)</i></a></small></li>
<li><cite id="CITEREFKing2008" class="citation book cs1">King, K.N. (2008). <i>C Programming: A Modern Approach</i> (2 ed.). W. W. Norton. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0393979503</bdi>.</cite> <small><a rel="nofollow" class="external text" href="https://archive.org/details/cprogrammingmode0000king"><i>(archive)</i></a></small></li>
<li><cite id="CITEREFGriffithsGriffiths2012" class="citation book cs1">Griffiths, David; Griffiths, Dawn (2012). <i>Head First C</i> (1 ed.). O'Reilly. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-1449399917</bdi>.</cite></li>
<li><cite id="CITEREFPerryMiller2013" class="citation book cs1">Perry, Greg; Miller, Dean (2013). <i>C Programming: Absolute Beginner's Guide</i> (3 ed.). Que. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0789751980</bdi>.</cite></li>
<li><cite id="CITEREFDeitelDeitel2015" class="citation book cs1">Deitel, Paul; Deitel, Harvey (2015). <i>C: How to Program</i> (8 ed.). Pearson. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-0133976892</bdi>.</cite></li>
<li><cite id="CITEREFGustedt2019" class="citation book cs1">Gustedt, Jens (2019). <i>Modern C</i> (2 ed.). Manning. <a href="ISBN_(identifier)" class="mw-redirect" title="ISBN (identifier)">ISBN</a> <bdi>978-1617295812</bdi>.</cite> <small><i><a rel="nofollow" class="external text" href="https://gustedt.gitlabpages.inria.fr/modern-c/">(free)</a></i></small></li></ul>
</div>
<div class="mw-heading mw-heading2"><h2 id="External_links">External links</h2></div>
<ul><li><a rel="nofollow" class="external text" href="https://www.open-std.org/jtc1/sc22/wg14/">ISO C Working Group official website</a>
<ul><li><a rel="nofollow" class="external text" href="https://www.open-std.org/JTC1/SC22/WG14/www/standards">ISO/IEC 9899</a>, publicly available official C documents, including the C99 Rationale</li>
<li><cite class="citation web cs1"><a rel="nofollow" class="external text" href="https://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf">"C99 with Technical corrigenda TC1, TC2, and TC3 included"</a> <span class="cs1-format">(PDF)</span>. <a rel="nofollow" class="external text" href="https://web.archive.org/web/20071025205438/http://www.open-std.org/JTC1/SC22/WG14/www/docs/n1256.pdf">Archived</a> <span class="cs1-format">(PDF)</span> from the original on October 25, 2007.</cite> <span style="font-size: 85%;">(3.61 MB)</span></li></ul></li>
<li><a rel="nofollow" class="external text" href="https://c-faq.com/">comp.lang.c Frequently Asked Questions</a></li>
<li><a rel="nofollow" class="external text" href="https://csapp.cs.cmu.edu/3e/docs/chistory.html">A History of C</a>, by Dennis Ritchie</li>
<li><a rel="nofollow" class="external text" href="https://en.cppreference.com/w/c">C Library Reference and Examples</a></li></ul>
<style data-mw-deduplicate="TemplateStyles:r1130092004">
/* start https://en.wikipedia.org/ */
.mw-parser-output .portal-bar{font-size:88%;font-weight:bold;display:flex;justify-content:center;align-items:baseline}.mw-parser-output .portal-bar-bordered{padding:0 2em;background-color:#fdfdfd;border:1px solid #a2a9b1;clear:both;margin:1em auto 0}.mw-parser-output .portal-bar-related{font-size:100%;justify-content:flex-start}.mw-parser-output .portal-bar-unbordered{padding:0 1.7em;margin-left:0}.mw-parser-output .portal-bar-header{margin:0 1em 0 0.5em;flex:0 0 auto;min-height:24px}.mw-parser-output .portal-bar-content{display:flex;flex-flow:row wrap;flex:0 1 auto;padding:0.15em 0;column-gap:1em;align-items:baseline;margin:0;list-style:none}.mw-parser-output .portal-bar-content-related{margin:0;list-style:none}.mw-parser-output .portal-bar-item{display:inline-block;margin:0.15em 0.2em;min-height:24px;line-height:24px}@media screen and (max-width:768px){.mw-parser-output .portal-bar{font-size:88%;font-weight:bold;display:flex;flex-flow:column wrap;align-items:baseline}.mw-parser-output .portal-bar-header{text-align:center;flex:0;padding-left:0.5em;margin:0 auto}.mw-parser-output .portal-bar-related{font-size:100%;align-items:flex-start}.mw-parser-output .portal-bar-content{display:flex;flex-flow:row wrap;align-items:center;flex:0;column-gap:1em;border-top:1px solid #a2a9b1;margin:0 auto;list-style:none}.mw-parser-output .portal-bar-content-related{border-top:none;margin:0;list-style:none}}.mw-parser-output .navbox+link+.portal-bar,.mw-parser-output .navbox+style+.portal-bar,.mw-parser-output .navbox+link+.portal-bar-bordered,.mw-parser-output .navbox+style+.portal-bar-bordered,.mw-parser-output .sister-bar+link+.portal-bar,.mw-parser-output .sister-bar+style+.portal-bar,.mw-parser-output .portal-bar+.navbox-styles+.navbox,.mw-parser-output .portal-bar+.navbox-styles+.sister-bar{margin-top:-1px}
/* end https://en.wikipedia.org/ */
</style><style data-mw-deduplicate="TemplateStyles:r1236088147">
/* start https://en.wikipedia.org/ */
.mw-parser-output .sister-bar{display:flex;justify-content:center;align-items:baseline;font-size:88%;background-color:#fdfdfd;border:1px solid #a2a9b1;clear:both;margin:1em 0 0;padding:0 2em}.mw-parser-output .sister-bar-header{margin:0 1em 0 0.5em;padding:0.2em 0;flex:0 0 auto;min-height:24px;line-height:22px}.mw-parser-output .sister-bar-content{display:flex;flex-flow:row wrap;flex:0 1 auto;align-items:baseline;padding:0.2em 0;column-gap:1em;margin:0;list-style:none}.mw-parser-output .sister-bar-item{display:flex;align-items:baseline;margin:0.15em 0;min-height:24px;text-align:left}.mw-parser-output .sister-bar-logo{width:22px;line-height:22px;margin:0 0.2em;text-align:right}.mw-parser-output .sister-bar-link{margin:0 0.2em;text-align:left}@media screen and (max-width:960px){.mw-parser-output .sister-bar{flex-flow:column wrap;margin:1em auto 0}.mw-parser-output .sister-bar-header{flex:0 1}.mw-parser-output .sister-bar-content{flex:1;border-top:1px solid #a2a9b1;margin:0;list-style:none}.mw-parser-output .sister-bar-item{flex:0 0 20em;min-width:20em}}.mw-parser-output .navbox+link+.sister-bar,.mw-parser-output .navbox+style+.sister-bar,.mw-parser-output .portal-bar+link+.sister-bar,.mw-parser-output .portal-bar+style+.sister-bar,.mw-parser-output .sister-bar+.navbox-styles+.navbox,.mw-parser-output .sister-bar+.navbox-styles+.portal-bar{margin-top:-1px}@media print{body.ns-0 .mw-parser-output .sister-bar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1236075235">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbox{box-sizing:border-box;border:1px solid #a2a9b1;width:100%;clear:both;font-size:88%;text-align:center;padding:1px;margin:1em auto 0}.mw-parser-output .navbox .navbox{margin-top:0}.mw-parser-output .navbox+.navbox,.mw-parser-output .navbox+.navbox-styles+.navbox{margin-top:-1px}.mw-parser-output .navbox-inner,.mw-parser-output .navbox-subgroup{width:100%}.mw-parser-output .navbox-group,.mw-parser-output .navbox-title,.mw-parser-output .navbox-abovebelow{padding:0.25em 1em;line-height:1.5em;text-align:center}.mw-parser-output .navbox-group{white-space:nowrap;text-align:right}.mw-parser-output .navbox,.mw-parser-output .navbox-subgroup{background-color:#fdfdfd}.mw-parser-output .navbox-list{line-height:1.5em;border-color:#fdfdfd}.mw-parser-output .navbox-list-with-group{text-align:left;border-left-width:2px;border-left-style:solid}.mw-parser-output tr+tr>.navbox-abovebelow,.mw-parser-output tr+tr>.navbox-group,.mw-parser-output tr+tr>.navbox-image,.mw-parser-output tr+tr>.navbox-list{border-top:2px solid #fdfdfd}.mw-parser-output .navbox-title{background-color:#ccf}.mw-parser-output .navbox-abovebelow,.mw-parser-output .navbox-group,.mw-parser-output .navbox-subgroup .navbox-title{background-color:#ddf}.mw-parser-output .navbox-subgroup .navbox-group,.mw-parser-output .navbox-subgroup .navbox-abovebelow{background-color:#e6e6ff}.mw-parser-output .navbox-even{background-color:#f7f7f7}.mw-parser-output .navbox-odd{background-color:transparent}.mw-parser-output .navbox .hlist td dl,.mw-parser-output .navbox .hlist td ol,.mw-parser-output .navbox .hlist td ul,.mw-parser-output .navbox td.hlist dl,.mw-parser-output .navbox td.hlist ol,.mw-parser-output .navbox td.hlist ul{padding:0.125em 0}.mw-parser-output .navbox .navbar{display:block;font-size:100%}.mw-parser-output .navbox-title .navbar{float:left;text-align:left;margin-right:0.5em}body.skin--responsive .mw-parser-output .navbox-image img{max-width:none!important}@media print{body.ns-0 .mw-parser-output .navbox{display:none!important}}
/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox" aria-labelledby="C_programming_language527" style="padding:3px"><table class="nowraplinks hlist mw-collapsible expanded navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><style data-mw-deduplicate="TemplateStyles:r1239400231">
/* start https://en.wikipedia.org/ */
.mw-parser-output .navbar{display:inline;font-size:88%;font-weight:normal}.mw-parser-output .navbar-collapse{float:left;text-align:left}.mw-parser-output .navbar-boxtext{word-spacing:0}.mw-parser-output .navbar ul{display:inline-block;white-space:nowrap;line-height:inherit}.mw-parser-output .navbar-brackets::before{margin-right:-0.125em;content:"[ "}.mw-parser-output .navbar-brackets::after{margin-left:-0.125em;content:" ]"}.mw-parser-output .navbar li{word-spacing:-0.125em}.mw-parser-output .navbar a>span,.mw-parser-output .navbar a>abbr{text-decoration:inherit}.mw-parser-output .navbar-mini abbr{font-variant:small-caps;border-bottom:none;text-decoration:none;cursor:inherit}.mw-parser-output .navbar-ct-full{font-size:114%;margin:0 7em}.mw-parser-output .navbar-ct-mini{font-size:114%;margin:0 4em}html.skin-theme-clientpref-night .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}@media(prefers-color-scheme:dark){html.skin-theme-clientpref-os .mw-parser-output .navbar li a abbr{color:var(--color-base)!important}}@media print{.mw-parser-output .navbar{display:none!important}}
/* end https://en.wikipedia.org/ */
</style><div id="C_programming_language527" style="font-size:114%;margin:0 4em"></div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><a href="ANSI_C" title="ANSI C">ANSI C</a></li>
<li><a href="C99" title="C99">C99</a></li>
<li><a href="C11_(C_standard_revision)" title="C11 (C standard revision)">C11</a></li>
<li><a href="C17_(C_standard_revision)" title="C17 (C standard revision)">C17</a></li>
<li><a href="C23_(C_standard_revision)" title="C23 (C standard revision)">C23</a></li>
<li><a href="Embedded_C" title="Embedded C">Embedded C</a></li>
<li><a href="MISRA_C" title="MISRA C">MISRA C</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Features</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Subroutine" class="mw-redirect" title="Subroutine">Functions</a></li>
<li><a href="Include_directive#C" title="Include directive">Header files</a></li>
<li><a href="Operators_in_C_and_C%2B%2B" title="Operators in C and C++">Operators</a></li>
<li><a href="C_string_handling" title="C string handling">String</a></li>
<li><a href="C_syntax" title="C syntax">Syntax</a></li>
<li><a href="C_preprocessor" title="C preprocessor">Preprocessor</a></li>
<li><a href="C_data_types" title="C data types">Data types</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="C_standard_library" title="C standard library">Standard library</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><td colspan="2" class="navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="C_character_classification" title="C character classification">Char</a></li>
<li><a href="C_file_input/output" title="C file input/output">File I/O</a></li>
<li><a href="C_mathematical_functions" title="C mathematical functions">Math</a></li>
<li><a href="C_dynamic_memory_allocation" title="C dynamic memory allocation">Dynamic memory</a></li>
<li><a href="C_string_handling" title="C string handling">String</a></li>
<li><a href="C_date_and_time_functions" title="C date and time functions">Time</a></li>
<li><a href="Stdarg.h" title="Stdarg.h">Variadic</a></li>
<li><a href="C_POSIX_library" title="C POSIX library">POSIX</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Implementations</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Bionic_(software)" title="Bionic (software)">Bionic</a>
<ul><li><a href="Hybris_(software)" class="mw-redirect" title="Hybris (software)">libhybris</a></li></ul></li>
<li><a href="Dietlibc" title="Dietlibc">dietlibc</a></li>
<li><a href="Glibc" title="Glibc">glibc</a>
<ul><li><a href="Embedded_GLIBC" class="mw-redirect" title="Embedded GLIBC">EGLIBC</a></li></ul></li>
<li><a href="Klibc" title="Klibc">klibc</a></li>
<li><a href="Microsoft_Windows_library_files" title="Microsoft Windows library files">Windows CRT</a></li>
<li><a href="Musl" title="Musl">musl</a></li>
<li><a href="Newlib" title="Newlib">Newlib</a></li>
<li><a href="UClibc" title="UClibc">uClibc</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="List_of_C_compilers" class="mw-redirect" title="List of C compilers">Compilers</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Amsterdam_Compiler_Kit" title="Amsterdam Compiler Kit">ACK</a></li>
<li><a href="Borland_Turbo_C" class="mw-redirect" title="Borland Turbo C">Borland Turbo C</a></li>
<li><a href="Clang" title="Clang">Clang</a></li>
<li><a href="GNU_Compiler_Collection" title="GNU Compiler Collection">GCC</a></li>
<li><a href="Intel_C%2B%2B_Compiler" title="Intel C++ Compiler">ICC</a></li>
<li><a href="LCC_(compiler)" title="LCC (compiler)">LCC</a></li>
<li><a href="Norcroft_C_compiler" title="Norcroft C compiler">Norcroft C</a></li>
<li><a href="Portable_C_Compiler" title="Portable C Compiler">PCC</a></li>
<li><a href="Small_Device_C_Compiler" title="Small Device C Compiler">SDCC</a></li>
<li><a href="Tiny_C_Compiler" title="Tiny C Compiler">TCC</a></li>
<li><a href="Microsoft_Visual_C%2B%2B" title="Microsoft Visual C++">Visual C++ (MSVC)</a></li>
<li><a href="Watcom_C/C%2B%2B" title="Watcom C/C++">Watcom C/C++</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Integrated_development_environment" title="Integrated development environment">IDEs</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Anjuta" title="Anjuta">Anjuta</a></li>
<li><a href="CLion" class="mw-redirect" title="CLion">CLion</a></li>
<li><a href="Code%3A%3ABlocks" title="Code::Blocks">Code::Blocks</a></li>
<li><a href="CodeLite" title="CodeLite">CodeLite</a></li>
<li><a href="Eclipse_(software)" title="Eclipse (software)">Eclipse</a></li>
<li><a href="Geany" title="Geany">Geany</a></li>
<li><a href="GNOME_Builder" title="GNOME Builder">GNOME Builder</a></li>
<li><a href="KDevelop" title="KDevelop">KDevelop</a></li>
<li><a href="NetBeans" title="NetBeans">NetBeans</a></li>
<li><a href="Visual_Studio" title="Visual Studio">Visual Studio</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Comparison with<br>other languages</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Compatibility_of_C_and_C%2B%2B" title="Compatibility of C and C++">Compatibility of C and C++</a></li>
<li><a href="Comparison_of_Pascal_and_C" title="Comparison of Pascal and C">Comparison with Pascal</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Descendant<br>languages</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Alef_(programming_language)" title="Alef (programming language)">Alef</a></li>
<li><a href="C%2B%2B" title="C++">C++</a></li>
<li><a href="C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a></li>
<li><a href="D_(programming_language)" title="D (programming language)">D</a></li>
<li><a href="Objective-C" title="Objective-C">Objective-C</a></li>
<li><a href="Go_(programming_language)" title="Go (programming language)">Go</a></li>
<li><a href="Vala_(programming_language)" title="Vala (programming language)">Vala</a></li>
<li><a href="Zig_(programming_language)" title="Zig (programming language)">Zig</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Designer</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Dennis_Ritchie" title="Dennis Ritchie">Dennis Ritchie</a></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><span class="noviewer" typeof="mw:File"><span title="Category"></span></span> <b>Category</b></li></ul>
</div></td></tr></tbody></table></div>
<div class="navbox-styles"></div><div role="navigation" class="navbox" aria-labelledby="Integrated_development_environments623" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Integrated_development_environments623" style="font-size:114%;margin:0 4em"><a href="Integrated_development_environment" title="Integrated development environment">Integrated development environments</a></div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">, <a href="C%2B%2B" title="C++">C++</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Arduino_IDE" class="mw-redirect" title="Arduino IDE">Arduino IDE</a></li>
<li><a href="Code%3A%3ABlocks" title="Code::Blocks">Code::Blocks</a></li>
<li><a href="CodeLite" title="CodeLite">CodeLite</a></li>
<li><a href="Dev-C%2B%2B" title="Dev-C++">Dev-C++</a></li>
<li><a href="Eclipse_(software)" title="Eclipse (software)">Eclipse</a></li>
<li><a href="Emacs" title="Emacs">Emacs</a></li>
<li><a href="Geany" title="Geany">Geany</a></li>
<li><a href="GNOME_Builder" title="GNOME Builder">GNOME Builder</a></li>
<li><a href="Kakoune" title="Kakoune">Kakoune</a></li>
<li><a href="KDevelop" title="KDevelop">KDevelop</a></li>
<li><a href="NetBeans" title="NetBeans">NetBeans</a></li>
<li>QDevelop</li>
<li><a href="Qt_Creator" title="Qt Creator">Qt Creator</a></li>
<li><a href="Ultimate%2B%2B" title="Ultimate++">TheIDE</a></li>
<li><a href="Vi_(text_editor)" title="Vi (text editor)">Vi</a>–<a href="Vim_(text_editor)" title="Vim (text editor)">Vim</a></li>
<li><a href="Watcom_C/C%2B%2B" title="Watcom C/C++">OpenWatcom</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Freeware" title="Freeware">Freeware</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="DevEco_Studio" class="mw-redirect" title="DevEco Studio">DevEco Studio</a></li>
<li><a href="Oracle_Developer_Studio" title="Oracle Developer Studio">Oracle Developer Studio</a></li>
<li><a href="Visual_Studio_Code" title="Visual Studio Code">Visual Studio Code</a></li>
<li><a href="Visual_Studio#Community" title="Visual Studio">Visual Studio Community</a></li>
<li><a href="Xcode" title="Xcode">Xcode</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Retail_software" title="Retail software">Retail</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="C%2B%2BBuilder" title="C++Builder">C++Builder</a></li>
<li><a href="Eclipse_(software)" title="Eclipse (software)">Eclipse</a>-based
<ul><li><a href="CodeWarrior" title="CodeWarrior">CodeWarrior</a></li>
<li><a href="MyEclipse" title="MyEclipse">MyEclipse</a></li></ul></li>
<li><a href="Visual_Studio" title="Visual Studio">Visual Studio</a></li>
<li>By <a href="JetBrains" title="JetBrains">JetBrains</a>
<ul><li><a href="IntelliJ_IDEA" title="IntelliJ IDEA">IntelliJ IDEA</a></li>
<li><a href="CLion" class="mw-redirect" title="CLion">CLion</a></li></ul></li>
<li><a href="LabWindows/CVI" title="LabWindows/CVI">LabWindows/CVI</a></li>
<li>IBM <a href="Rational_Software_Architect" class="mw-redirect" title="Rational Software Architect">Rational Software Architect</a></li>
<li><a href="Understand_(software)" title="Understand (software)">Understand</a></li>
<li><a href="SlickEdit" title="SlickEdit">SlickEdit</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Discontinued</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Anjuta" title="Anjuta">Anjuta</a></li>
<li>By <a href="JetBrains" title="JetBrains">JetBrains</a>
<ul><li><a href="AppCode" class="mw-redirect" title="AppCode">AppCode</a></li></ul></li>
<li><a href="VisualAge" title="VisualAge">VisualAge</a></li>
<li><a href="Microsoft_Visual_Studio_Express#Visual_C++_Express" title="Microsoft Visual Studio Express">Visual C++ Express</a></li>
<li><a href="MonoDevelop" title="MonoDevelop">MonoDevelop</a></li>
<li><a href="SharpDevelop" title="SharpDevelop">SharpDevelop</a></li>
<li><a href="Borland_Turbo_C" class="mw-redirect" title="Borland Turbo C">Borland Turbo C</a>, <a href="Turbo_C%2B%2B" title="Turbo C++">C++</a></li>
<li><a href="QuickC" title="QuickC">QuickC</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Java_(software_platform)" title="Java (software platform)">Java</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Anjuta" title="Anjuta">Anjuta</a></li>
<li><a href="BlueJ" title="BlueJ">BlueJ</a></li>
<li><a href="DrJava" title="DrJava">DrJava</a></li>
<li><a href="Eclipse_(software)" title="Eclipse (software)">Eclipse</a></li>
<li><a href="Geany" title="Geany">Geany</a></li>
<li><a href="Greenfoot" title="Greenfoot">Greenfoot</a></li>
<li><a href="IntelliJ_IDEA" title="IntelliJ IDEA">IntelliJ IDEA</a> Community Edition
<ul><li><a href="Android_Studio" title="Android Studio">Android Studio</a></li></ul></li>
<li><a href="NetBeans" title="NetBeans">NetBeans</a></li>
<li><a href="DevEco_Studio" class="mw-redirect" title="DevEco Studio">DevEco Studio</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Freeware" title="Freeware">Freeware</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="JGRASP" title="JGRASP">jGRASP</a></li>
<li><a href="JDeveloper" title="JDeveloper">JDeveloper</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Retail_software" title="Retail software">Retail</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li>JCreator</li>
<li><a href="MyEclipse" title="MyEclipse">MyEclipse</a></li>
<li><a href="JetBrains" title="JetBrains">JetBrains</a> <a href="IntelliJ_IDEA" title="IntelliJ IDEA">IntelliJ IDEA</a></li>
<li><a href="SlickEdit" title="SlickEdit">SlickEdit</a></li>
<li><a href="Understand_(software)" title="Understand (software)">Understand</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Discontinued</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li>Metrowerks <a href="CodeWarrior" title="CodeWarrior">CodeWarrior</a> Pro for Java</li>
<li><a href="JBuilder" title="JBuilder">JBuilder</a></li>
<li><a href="Sun_Java_Studio_Creator" title="Sun Java Studio Creator">Sun Java Studio Creator</a> (superseded by <a href="NetBeans" title="NetBeans">NetBeans</a>)</li>
<li><a href="VisualAge" title="VisualAge">VisualAge</a> (superseded by <a href="Eclipse_(software)" title="Eclipse (software)">Eclipse</a>)</li>
<li><a href="Visual_Caf%C3%A9" title="Visual Café">Visual Café</a> (aka Espresso, superseded by <a href="JBuilder" title="JBuilder">JBuilder</a>)</li>
<li><a href="Visual_J%2B%2B" title="Visual J++">Visual J++</a></li>
<li><a href="Xelfi" class="mw-redirect" title="Xelfi">Xelfi</a> (became <a href="NetBeans" title="NetBeans">NetBeans</a>)</li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="JavaScript" title="JavaScript">JavaScript</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th id="Open_source36" scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Vim_(text_editor)" title="Vim (text editor)">Vim</a></li>
<li><a href="Visual_Studio_Code" title="Visual Studio Code">Visual Studio Code</a></li>
<li><a href="Atom_(text_editor)" title="Atom (text editor)">Atom</a></li>
<li><a href="Chromium_(web_browser)" title="Chromium (web browser)">Chromium</a></li>
<li><a href="DevEco_Studio" class="mw-redirect" title="DevEco Studio">DevEco Studio</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Common_Language_Infrastructure" title="Common Language Infrastructure">CLI</a> (<a href=".NET" title=".NET">.NET</a>)</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Visual_Studio_Code" title="Visual Studio Code">Visual Studio Code</a></li>
<li><a href="PascalABC.NET" title="PascalABC.NET">PascalABC.NET</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Freeware" title="Freeware">Freeware</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Visual_Studio#Community" title="Visual Studio">Visual Studio Community</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Retail_software" title="Retail software">Retail</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Visual_Studio" title="Visual Studio">Visual Studio</a></li>
<li><a href="JetBrains#Rider" title="JetBrains">Rider</a></li>
<li><a href="Understand_(software)" title="Understand (software)">Understand</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Discontinued</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Xamarin_Studio" class="mw-redirect" title="Xamarin Studio">Xamarin Studio</a></li>
<li><a href="MonoDevelop" title="MonoDevelop">MonoDevelop</a></li>
<li><a href="SharpDevelop" title="SharpDevelop">SharpDevelop</a></li>
<li><a href="Microsoft_Visual_Studio_Express#Visual_Basic_Express" title="Microsoft Visual Studio Express">Visual Basic Express</a></li>
<li><a href="Microsoft_Visual_Studio_Express#Visual_Web_Developer_Express" title="Microsoft Visual Studio Express">Visual Web Developer Express</a></li>
<li><a href="Microsoft_Visual_Studio_Express#2005–2010_products" title="Microsoft Visual Studio Express">Visual J# Express</a></li>
<li><a href="Microsoft_Visual_Studio_Express#2005–2010_products" title="Microsoft Visual Studio Express">Visual Studio Express for Windows Phone</a></li>
<li><a href="Microsoft_Visual_Studio_Express#Visual_C++_Express" title="Microsoft Visual Studio Express">Visual C++ Express</a></li>
<li><a href="Microsoft_Visual_Studio_Express#_Express" title="Microsoft Visual Studio Express">Visual C# Express</a></li>
<li><a href="Microsoft_Visual_Studio_Express#2015-2017_products" title="Microsoft Visual Studio Express">Express for Desktop</a></li>
<li><a href="Microsoft_Visual_Studio_Express#2015-2017_products" title="Microsoft Visual Studio Express">Express for Web</a></li>
<li><a href="Microsoft_Visual_Studio_Express#2015-2017_products" title="Microsoft Visual Studio Express">Express for Windows</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Adobe_Flash" title="Adobe Flash">Flash</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Adobe_Flash_Builder" title="Adobe Flash Builder">Adobe Flash Builder</a></li>
<li>FlashDevelop</li>
<li><a href="Powerflasher_FDT" title="Powerflasher FDT">Powerflasher FDT</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="PHP" title="PHP">PHP</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Aptana" title="Aptana">Aptana</a></li>
<li><a href="NetBeans" title="NetBeans">NetBeans</a></li>
<li><a href="Komodo_Edit" title="Komodo Edit">Komodo Edit</a></li>
<li><a href="Komodo_IDE" title="Komodo IDE">Komodo IDE</a></li>
<li><a href="KDevelop" title="KDevelop">KDevelop</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Proprietary_software" title="Proprietary software">Proprietary</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Codelobster" title="Codelobster">Codelobster</a></li>
<li><a href="PhpStorm" class="mw-redirect" title="PhpStorm">PhpStorm</a></li>
<li><a href="PHPEdit" title="PHPEdit">PHPEdit</a></li>
<li><a href="SlickEdit" title="SlickEdit">SlickEdit</a></li>
<li><a href="Zend_Studio" title="Zend Studio">Zend Studio</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="R_(programming_language)" title="R (programming language)">R</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="RStudio" title="RStudio">RStudio</a></li>
<li><a href="R_Tools_for_Visual_Studio" title="R Tools for Visual Studio">R Tools for Visual Studio</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Python_(programming_language)" title="Python (programming language)">Python</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Anjuta" title="Anjuta">Anjuta</a></li>
<li><a href="IDLE" title="IDLE">IDLE</a></li>
<li><a href="Eric_(software)" title="Eric (software)">Eric</a></li>
<li><a href="Light_Table_(software)" title="Light Table (software)">Light Table</a></li>
<li><a href="Ninja-IDE" title="Ninja-IDE">Ninja-IDE</a></li>
<li><a href="PyDev" title="PyDev">PyDev</a></li>
<li>PyScripter</li>
<li>PIDA</li>
<li><a href="Spyder_(software)" title="Spyder (software)">Spyder</a></li>
<li><a href="Komodo_Edit" title="Komodo Edit">Komodo Edit</a></li>
<li><a href="Komodo_IDE" title="Komodo IDE">Komodo IDE</a></li>
<li><a href="KDevelop" title="KDevelop">KDevelop</a></li>
<li><a href="Vim_(text_editor)" title="Vim (text editor)">Vim</a></li>
<li><a href="Visual_Studio_Code" title="Visual Studio Code">Visual Studio Code</a></li>
<li><a href="Thonny" title="Thonny">Thonny</a></li>
<li><a href="DevEco_Studio" class="mw-redirect" title="DevEco Studio">DevEco Studio</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Proprietary_software" title="Proprietary software">Proprietary</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="PyCharm" title="PyCharm">PyCharm</a></li>
<li><a href="PythonAnywhere" title="PythonAnywhere">PythonAnywhere</a></li>
<li><a href="Visual_Studio_Code" title="Visual Studio Code">Visual Studio Code</a></li>
<li><a href="SlickEdit" title="SlickEdit">SlickEdit</a></li>
<li><a href="Wing_IDE" title="Wing IDE">Wing IDE</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a>,<br><a href="Object_Pascal" title="Object Pascal">Object Pascal</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Free_Pascal" title="Free Pascal">Free Pascal</a> IDE</li>
<li><a href="Lazarus_(software)" title="Lazarus (software)">Lazarus</a></li>
<li><a href="Dev-Pascal" title="Dev-Pascal">Dev-Pascal</a></li>
<li>GNAVI</li>
<li><a href="PascalABC.NET" title="PascalABC.NET">PascalABC.NET</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Freeware" title="Freeware">Freeware</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Delphi_(software)#Embarcadero_Delphi_10.2_Tokyo_(Community_Edition)" title="Delphi (software)">Delphi Community</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Retail_software" title="Retail software">Retail</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Delphi_(software)" title="Delphi (software)">Delphi</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Discontinued</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Turbo_Pascal" title="Turbo Pascal">Turbo Pascal</a></li>
<li><a href="Virtual_Pascal" title="Virtual Pascal">Virtual Pascal</a></li>
<li><a href="Borland_Kylix" title="Borland Kylix">Borland Kylix</a></li>
<li><a href="Microsoft_Pascal" title="Microsoft Pascal">QuickPascal</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="BASIC" title="BASIC">BASIC</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Basic-256" title="Basic-256">Basic-256</a></li>
<li><a href="Microsoft_Small_Basic" title="Microsoft Small Basic">Microsoft Small Basic</a></li>
<li><a href="SdlBasic" title="SdlBasic">SdlBasic</a></li>
<li><a href="Gambas" title="Gambas">Gambas</a></li>
<li><a href="Basic4GL" title="Basic4GL">Basic4GL</a></li>
<li><a href="FreeBASIC" title="FreeBASIC">VisualFBEditor / WinFBE</a></li>
<li><a href="QB64" title="QB64">InForm</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Freeware" title="Freeware">Freeware</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="FutureBASIC" title="FutureBASIC">FutureBASIC</a></li>
<li><a href="RapidQ" title="RapidQ">RapidQ</a></li>
<li><a href="Visual_Studio#Community" title="Visual Studio">Visual Studio Community</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Retail_software" title="Retail software">Retail</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Visual_Studio" title="Visual Studio">Visual Studio</a></li>
<li><a href="NS_Basic" title="NS Basic">NS Basic</a></li>
<li><a href="PureBasic" title="PureBasic">PureBasic</a></li>
<li><a href="GLBasic" title="GLBasic">GLBasic</a></li>
<li><a href="Liberty_BASIC" title="Liberty BASIC">Liberty BASIC</a></li>
<li><a href="Xojo" title="Xojo">Xojo</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Discontinued</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="CA-Realizer" title="CA-Realizer">CA-Realizer</a></li>
<li><a href="MonoDevelop" title="MonoDevelop">MonoDevelop</a></li>
<li><a href="QuickBASIC" title="QuickBASIC">QuickBASIC</a></li>
<li><a href="QBasic" title="QBasic">QBasic</a></li>
<li><a href="SharpDevelop" title="SharpDevelop">SharpDevelop</a></li>
<li><a href="Visual_Basic_(classic)" title="Visual Basic (classic)">Visual Basic</a></li>
<li><a href="Microsoft_Visual_Studio_Express#Visual_Basic_Express" title="Microsoft Visual Studio Express">Visual Basic Express</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Go_(programming_language)" title="Go (programming language)">Go</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"></div><table class="nowraplinks navbox-subgroup" style="border-spacing:0"><tbody><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Open-source_software" title="Open-source software">Open source</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Vim_(text_editor)" title="Vim (text editor)">Vim</a></li>
<li><a href="Visual_Studio_Code" title="Visual Studio Code">Visual Studio Code</a> (VSCode)</li>
<li><a href="Eclipse_(software)" title="Eclipse (software)">Eclipse</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Freeware" title="Freeware">Freeware</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Cloud9_IDE" title="Cloud9 IDE">Cloud9 IDE</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Retail_software" title="Retail software">Retail</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="JetBrains#GoLand" title="JetBrains">GoLand</a></li></ul>
</div></td></tr></tbody></table><div></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Eiffel_(programming_language)" title="Eiffel (programming language)">Eiffel</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="EiffelStudio" title="EiffelStudio">EiffelStudio</a></li>
<li><a href="LibertyEiffel" title="LibertyEiffel">LibertyEiffel</a></li>
<li><a href="Visual_Eiffel" title="Visual Eiffel">Visual Eiffel</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Haxe" title="Haxe">Haxe</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="IntelliJ_IDEA" title="IntelliJ IDEA">IntelliJ IDEA</a></li>
<li><a href="VS_Code" class="mw-redirect" title="VS Code">VS Code</a></li>
<li><a href="Sublime_Text" title="Sublime Text">Sublime Text</a></li>
<li><a href="Powerflasher_FDT" title="Powerflasher FDT">Powerflasher FDT</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="POP-11" title="POP-11">POP-11</a></th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Poplog" title="Poplog">Poplog</a></li></ul>
</div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%"><a href="Online_integrated_development_environment" title="Online integrated development environment">Online</a></th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li>AWS <a href="Cloud9_IDE" title="Cloud9 IDE">Cloud9 IDE</a></li>
<li><a href="Eclipse_Che" title="Eclipse Che">Eclipse Che</a></li>
<li><a href="Firebase_Studio" title="Firebase Studio">Firebase Studio</a></li>
<li><a href="SourceLair" title="SourceLair">SourceLair</a></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><b><a href="Comparison_of_integrated_development_environments" title="Comparison of integrated development environments">Comparison</a></b></li>
<li><b>Category</b></li></ul>
</div></td></tr></tbody></table></div>
<div class="navbox-styles"></div><div role="navigation" class="navbox" aria-labelledby="Programming_languages625" style="padding:3px"><table class="nowraplinks hlist mw-collapsible expanded navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Programming_languages625" style="font-size:114%;margin:0 4em"><a href="Programming_language" title="Programming language">Programming languages</a></div></th></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><a href="Comparison_of_programming_languages" title="Comparison of programming languages">Comparison</a></li>
<li><a href="Timeline_of_programming_languages" title="Timeline of programming languages">Timeline</a></li>
<li><a href="History_of_programming_languages" title="History of programming languages">History</a></li></ul>
</div></td></tr><tr><td colspan="2" class="navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em">
<ul><li><a href="Ada_(programming_language)" title="Ada (programming language)">Ada</a></li>
<li><a href="ALGOL" title="ALGOL">ALGOL</a>
<ul><li><a href="Simula" title="Simula">Simula</a></li></ul></li>
<li><a href="APL_(programming_language)" title="APL (programming language)">APL</a></li>
<li><a href="Assembly_language" title="Assembly language">Assembly</a></li>
<li><a href="BASIC" title="BASIC">BASIC</a>
<ul><li><a href="Visual_Basic" title="Visual Basic">Visual Basic</a>
<ul><li><a href="Visual_Basic_(classic)" title="Visual Basic (classic)">classic</a></li>
<li><a href="Visual_Basic_(.NET)" title="Visual Basic (.NET)">.NET</a></li></ul></li></ul></li>
<li><a href="C%2B%2B" title="C++">C++</a></li>
<li><a href="C_Sharp_(programming_language)" title="C Sharp (programming language)">C#</a></li>
<li><a href="COBOL" title="COBOL">COBOL</a></li>
<li><a href="Erlang_(programming_language)" title="Erlang (programming language)">Erlang</a>
<ul><li><a href="Elixir_(programming_language)" title="Elixir (programming language)">Elixir</a></li></ul></li>
<li><a href="Forth_(programming_language)" title="Forth (programming language)">Forth</a></li>
<li><a href="Fortran" title="Fortran">Fortran</a></li>
<li><a href="Go_(programming_language)" title="Go (programming language)">Go</a></li>
<li><a href="Haskell" title="Haskell">Haskell</a></li>
<li><a href="Java_(programming_language)" title="Java (programming language)">Java</a></li>
<li><a href="JavaScript" title="JavaScript">JavaScript</a></li>
<li><a href="Julia_(programming_language)" title="Julia (programming language)">Julia</a></li>
<li><a href="Kotlin_(programming_language)" title="Kotlin (programming language)">Kotlin</a></li>
<li><a href="Lisp_(programming_language)" title="Lisp (programming language)">Lisp</a></li>
<li><a href="Lua" title="Lua">Lua</a></li>
<li><a href="MATLAB" title="MATLAB">MATLAB</a></li>
<li><a href="ML_(programming_language)" title="ML (programming language)">ML</a>
<ul><li><a href="Caml" title="Caml">Caml </a>
<ul><li><a href="OCaml" title="OCaml">OCaml</a></li></ul></li></ul></li>
<li><a href="Pascal_(programming_language)" title="Pascal (programming language)">Pascal</a>
<ul><li><a href="Object_Pascal" title="Object Pascal">Object Pascal</a></li></ul></li>
<li><a href="Perl" title="Perl">Perl </a>
<ul><li><a href="Raku_(programming_language)" title="Raku (programming language)">Raku</a></li></ul></li>
<li><a href="PHP" title="PHP">PHP</a></li>
<li><a href="Prolog" title="Prolog">Prolog</a></li>
<li><a href="Python_(programming_language)" title="Python (programming language)">Python</a></li>
<li><a href="R_(programming_language)" title="R (programming language)">R</a></li>
<li><a href="Ruby_(programming_language)" title="Ruby (programming language)">Ruby</a></li>
<li><a href="Rust_(programming_language)" title="Rust (programming language)">Rust</a></li>
<li><a href="SAS_language" title="SAS language">SAS</a></li>
<li><a href="SQL" title="SQL">SQL</a></li>
<li><a href="Scratch_(programming_language)" title="Scratch (programming language)">Scratch</a></li>
<li><a href="Shell_script" title="Shell script">Shell</a></li>
<li><a href="Smalltalk" title="Smalltalk">Smalltalk</a></li>
<li><a href="Swift_(programming_language)" title="Swift (programming language)">Swift</a></li>
<li><i><a href="List_of_programming_languages" title="List of programming languages">more...</a></i></li></ul>
</div></td></tr><tr><td class="navbox-abovebelow" colspan="2"><div>
<ul><li><span class="noviewer" typeof="mw:File"><span title="List-Class article"></span></span> <b>Lists:</b> <a href="List_of_programming_languages" title="List of programming languages">Alphabetical</a></li>
<li><a href="List_of_programming_languages_by_type" title="List of programming languages by type">Categorical</a></li>
<li><a href="Generational_list_of_programming_languages" title="Generational list of programming languages">Generational</a></li>
<li><a href="Non-English-based_programming_languages" title="Non-English-based programming languages">Non-English-based</a></li>
<li><span class="noviewer" typeof="mw:File"><span title="Category"></span></span> Category</li></ul>
</div></td></tr></tbody></table></div>
<div class="navbox-styles"><style data-mw-deduplicate="TemplateStyles:r1038841319">
/* start https://en.wikipedia.org/ */
.mw-parser-output .tooltip-dotted{border-bottom:1px dotted;cursor:help}
/* end https://en.wikipedia.org/ */
</style></div><div role="navigation" class="navbox authority-control" aria-labelledby="Authority_control_databases_frameless&#124;text-top&#124;10px&#124;alt=Edit_this_at_Wikidata&#124;link=https&#58;//www.wikidata.org/wiki/Q15777#identifiers&#124;class=noprint&#124;Edit_this_at_Wikidata1349" style="padding:3px"><table class="nowraplinks hlist mw-collapsible autocollapse navbox-inner" style="border-spacing:0;background:transparent;color:inherit"><tbody><tr><th scope="col" class="navbox-title" colspan="2"><div id="Authority_control_databases_frameless&#124;text-top&#124;10px&#124;alt=Edit_this_at_Wikidata&#124;link=https&#58;//www.wikidata.org/wiki/Q15777#identifiers&#124;class=noprint&#124;Edit_this_at_Wikidata1349" style="font-size:114%;margin:0 4em">Authority control databases </div></th></tr><tr><th scope="row" class="navbox-group" style="width:1%">International</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://id.worldcat.org/fast/843279">FAST</a></span></li></ul></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">National</th><td class="navbox-list-with-group navbox-list navbox-even" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://d-nb.info/gnd/4113195-2">Germany</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://id.loc.gov/authorities/sh85018532">United States</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://catalogue.bnf.fr/ark:/12148/cb119665180">France</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://data.bnf.fr/ark:/12148/cb119665180">BnF data</a></span></li><li><span class="uid"><span class="rt-commentedText tooltip tooltip-dotted" title="C (programovací jazyk)"><a rel="nofollow" class="external text" href="https://aleph.nkp.cz/F/?func=find-c&local_base=aut&ccl_term=ica=ph116955&CON_LNG=ENG">Czech Republic</a></span></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://www.nli.org.il/en/authorities/987007293665105171">Israel</a></span></li></ul></div></td></tr><tr><th scope="row" class="navbox-group" style="width:1%">Other</th><td class="navbox-list-with-group navbox-list navbox-odd" style="width:100%;padding:0"><div style="padding:0 0.25em"><ul><li><span class="uid"><a rel="nofollow" class="external text" href="https://www.idref.fr/027672441">IdRef</a></span></li><li><span class="uid"><a rel="nofollow" class="external text" href="https://lux.collections.yale.edu/view/concept/7953a614-4dab-469b-8740-221571c086b7">Yale LUX</a></span></li></ul></div></td></tr></tbody></table></div></div><!--htdig_noindex--><div><div class="zim-footer">
This article is issued from <a class="external text" title="Last edited on 2025-08-07" href="https://en.wikipedia.org/wiki/?title=C_(programming_language)&oldid=1304706196">Wikipedia</a>. The text is available under <a class="external text" href="https://creativecommons.org/licenses/by-sa/4.0/deed.en">Creative Commons Attribution-Share Alike 4.0</a> unless otherwise noted. Additional terms may apply for the media files.
</div>
</div><!--/htdig_noindex--></div>
</div>
</main>
</div>
</div>
</div>
</body></html>